From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,1128915a2fb26da6,start X-Google-Attributes: gidfee84,public From: Angela Bao Subject: keymapping for Vt100 emulation Date: 1995/11/14 Message-ID: <1995Nov14.145454.171@bbs.ug.eds.com>#1/1 X-Deja-AN: 119439291 content-type: text/plain; charset=us-ascii x-url: news:comp.unix.osf.osf1 mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 1.1N (X11; I; HP-UX A.09.05 9000/710) 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: insert-seven-bit() VMSTERM*VT100.Translations: #override \n\ F1: string(0x1b) string(OP)\n\ F2: string(0x1b) string(OQ)\n\ F3: string(0x1b) string(OR)\n\ F4: string(0x1b) string(OS)\n\ KP_Divide: string(0x1b) string(OQ)\n\ KP_Multiply: string(0x1b) string(OR)\n\ KP_Subtract: string(0x1b) string(OS)\n\ KP_Add: string(0x1b) string(Om)\n\ KP_Enter: string(0x1b) string(OM)\n\ KP_0: string(0x1b) string(Op)\n\ KP_1: string(0x1b) string(Oq)\n\ KP_2: string(0x1b) string(Or)\n\ KP_3: string(0x1b) string(Os)\n\ KP_4: string(0x1b) string(Ot)\n\ KP_5: string(0x1b) string(Ou)\n\ KP_6: string(0x1b) string(Ov)\n\ KP_7: string(0x1b) string(Ow)\n\ KP_8: string(0x1b) string(Ox)\n\ KP_9: string(0x1b) string(Oy)\n\ KP_Decimal: string(0x1b) string(On)\n\ 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 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=