Re: keyboard mapping PF1, 2, 3, 4
Date: Wed, 22 Sep 1993 02:18:26 GMT
Message-ID: <1993Sep22.021826.1240_at_oracle.us.oracle.com>
In article <DBIKLE.93Sep21165457_at_alumni.cco.caltech.edu> dbikle_at_alumni.cco.caltech.edu (Daniel B. Bikle) writes:
]
[...remapping your workstation to a VT,...]
] ] -Here's the tricky part: ] program your 4 favorite keys to emit these characters. ] this is easy to do on a NeXT. ] if you are running X windows it might be do-able.
Here's how I do this on X: I add the following lines to my
~/.Xdefaults file (some call this ~/.Xresources--same thing):
/* ------------ cut here ------------- */
xterm100*VT100.translations: #override \
\
~Ctrl ~Shift ~Alt <Key> F1 : string(0x1b) string(0x4f) string(0x50) \n\
~Ctrl ~Shift ~Alt <Key> F2 : string(0x1b) string(0x4f) string(0x51) \n\
~Ctrl ~Shift ~Alt <Key> F3 : string(0x1b) string(0x4f) string(0x52) \n\
~Ctrl ~Shift ~Alt <Key> F4 : string(0x1b) string(0x4f) string(0x53)
/* No modifiers....... Fn : ^^ Escape ^^ ^^ O ^^ ^^ P/Q/R/S ^^ */
/* ------------ cut here ------------- */
Either restart X or do "xrdb -merge < ~/.Xdefaults", to get X to recognize the new mapping. Then, start a window with "xterm -name xterm100": this window will have PF1 through PF4 on keys F1 through F4. (This works on Sun and Aviion--dunno about VAXen.)
You may have to add some more definitions for the keypad keys: some workstations don't produce VT100 sequences for those keys, and most Oracle apps use those keys for a VT100 (since there are no Fn keys). The idea would be the same; check your workstation's manual for the names of these keys, get the VT sequeneces as Dan says, and remap them as above.
] Or if you have nimble fingers, just type them in.
Actually, this may or may not work: if you type too slowly, the application may interpret the leading "Escape" as the [Escape] key, and not bind the rest. (This happens if you have [Escape] bound to something.)
- Bill K.
Bill Kaufman | "ENJOY LIFE! wkaufman_at_us.oracle.com | -- Eat out more often." | -- S. E. RykoffReceived on Wed Sep 22 1993 - 04:18:26 CEST