Hi
Does anyone know how to intercept the codes send by a terminal's function
keys and remap it to another value.
Bye
Does anyone know how to intercept the codes send by a terminal's function
keys and remap it to another value.
Bye
> Hi
> Does anyone know how to intercept the codes send by a terminal's function
> keys and remap it to another value.
> Bye
xterm*translations: #override\
Shift<Key>F12: string("tput reset") string(0x0d)\n\
Ctrl<Key>F10: string("uname -a") string(0x0d)\n\
<Key>F11: string("ps -ef | grep xterm") string(0x0d)\n\
<Key>F12: string("rlogin topaze") string(0x0d)\n
--
HTH.
1. Function key mapping for Xterms?
I installed Linux 0.99pl13 on my boss's Dell, and got Xfree86-2.0
to work (well, only in 16 color mode, the S3 server didn't work),
and now it is on his desk. It is running TWM, and I have a cute
little .twmrc to help him out. Only he wants to telnet to a VMS
machine and use the TPU editor. Which requires that some keys on
the keyboard send through <ESC>OP, <ESC>OQ, <ESC>OR, and <ESC>OS.
I looked in the termcap and terminfo entries, and they seem to
have it already:
xterm termcap excerpt:
:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:kb=^H:kd=\EOB:ke=\E[?1l\E>:\
xterm terminfo excerpt:
kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, rc=\E8,
So, it should just work, right?
Well, so I tried adding an entry to the /usr/X386/lib/X11/app-defaults/XTerm
file:
*VT100.Translations: #override <Key>F13: keymap(dbx)
*VT100.dbxKeymap.translations: \
<Key>F1: string(0x09) string("OP") \
<Key>F2: string(0x09) string("OQ") \
<Key>F3: string(0x09) string("OR") \
<Key>F4: string(0x09) string("OS")
In all cases, my modifications failed to change the function keys
from 1~ , 2~ , 3~ or 4~ as output.
I tried openning new xterms, rebooting, the whole spiel. No
dice. Only thing that changes it all is to run xterm -sf, which
changes the output to 24z , 25z , 26z and 27z.
Does anyone know what I'm doing wrong?
Eric
2. Trust Account between servers
3. IBM3151-Function key mapping problems
4. COLA FAQ 7 of 7 04-Aug-2002
5. Olwm - need cmdtool termcap and function key mappings
6. Need site registerins software/services
7. Keyboard function key mappings with CDE dtterm session
10. Mapping keys other than the function keys
11. vi question - mapping a function key in .exrc file that uses a yanked word
12. Query: Mapping function keys in OpenWindows