* keymapping for Vt100 emulation
@ 1995-11-14 5:00 Angela Bao
0 siblings, 0 replies; only message in thread
From: Angela Bao @ 1995-11-14 5:00 UTC (permalink / raw)
Hello OSFers,
Several weeks ago I asked the net for help defining the keypad to
emulate vt100, used to telnet to a VMS box. No one helped me.
Digital support wasn't helpful either. So I came up with my own solution.
All you need to do is add the following lines to
/usr/lib/X11/app-defaults/XTerm, invoke an xterm named VMSTERM,
e.g. xterm -name VMSTERM
This redefines the function keys F1-F4 as the PF1-PF4 keys,
also, PF1 = F1 (the GOLD key)
PF2 = F2 = /
PF3 = F3 = *
PF4 = F4 = -
The key redefinition is only active in that specific "xterm",
so it doesn't affect any other dtterm or applications.
Hopefully someone will find it useful someday.
XTerm*VT100.Translations: #override Meta<KeyPress>: insert-seven-bit()
VMSTERM*VT100.Translations: #override \n\
<Key>F1: string(0x1b) string(OP)\n\
<Key>F2: string(0x1b) string(OQ)\n\
<Key>F3: string(0x1b) string(OR)\n\
<Key>F4: string(0x1b) string(OS)\n\
<Key>KP_Divide: string(0x1b) string(OQ)\n\
<Key>KP_Multiply: string(0x1b) string(OR)\n\
<Key>KP_Subtract: string(0x1b) string(OS)\n\
<Key>KP_Add: string(0x1b) string(Om)\n\
<Key>KP_Enter: string(0x1b) string(OM)\n\
<Key>KP_0: string(0x1b) string(Op)\n\
<Key>KP_1: string(0x1b) string(Oq)\n\
<Key>KP_2: string(0x1b) string(Or)\n\
<Key>KP_3: string(0x1b) string(Os)\n\
<Key>KP_4: string(0x1b) string(Ot)\n\
<Key>KP_5: string(0x1b) string(Ou)\n\
<Key>KP_6: string(0x1b) string(Ov)\n\
<Key>KP_7: string(0x1b) string(Ow)\n\
<Key>KP_8: string(0x1b) string(Ox)\n\
<Key>KP_9: string(0x1b) string(Oy)\n\
<Key>KP_Decimal: string(0x1b) string(On)\n\
<Key>BackSpace: string(0x7f)
enjoy,
angela
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
EEEEE DDDD SSSSS Angela Bao
E D D S EDS - Unigraphics
EEEE D D SSSSS System and Network Management
E D D S bao@edsug.com
EEEEE DDDD SSSSS #include <std.disclaimer>
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1995-11-14 5:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-11-14 5:00 keymapping for Vt100 emulation Angela Bao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox