SWANGER@ducvax.auburn.edu (David Swanger) (03/22/91)
I recently posted a few messages regarding xterm VT100 keypad emulation on a SUN. In the last posting, I offered to share my .Xdefaults file with anyone who wanted a copy. In the last few days I have received 14 requests for this file, so I have decided to post the file to Usenet. I hope that this will help any frustrated Vax users who at times have to use a Sun as a terminal. - Save the file to your home directory, name it .Xdefaults - Enter xrdb .Xdefaults - run xterm and telnet to your Vax - the keypad should now work correctly - the gold key is now the equal (=) key - the cursor keys are now F9 through F12 Good luck! --------------------Cut here, rename to .Xdefaults---------------------------- XTerm*Font: terminal-bold XTerm*scrollBar: on XTerm*ttyModes: kill ^k XTerm*VT100.translations: \ #override \ <Key>KP_Add: string(0x1b) string("Ol") \n\ <Key>F9: string(0x1b) string("[D") \n\ <Key>SunF36: string(0x1b) string("[A") \n\ <Key>F10: string(0x1b) string("[B") \n\ <Key>SunF37: string(0x1b) string("[C") \n\ <Key>F24: string(0x1b) string("OP") \n\ <Key>KP_Equal: string(0x1b) string("OP") \n\ <Key>F25: string(0x1b) string("OQ") \n\ <Key>KP_Divide: string(0x1b) string("OQ") \n\ <Key>F26: string(0x1b) string("OR") \n\ <Key>KP_Multiply: string(0x1b) string("OR") \n\ <Key>KP_Subtract: string(0x1b) string("OS") \n\ <Key>KP_Enter: string(0x1b) string("OM") \n\ <Key>KP_Decimal: string(0x1b) string("On") \n\ <Key>KP_0: string(0x1b) string("Op") \n\ <Key>Insert: string(0x1b) string("Op") \n\ <Key>KP_1: string(0x1b) string("Oq") \n\ <Key>R13: string(0x1b) string("Oq") \n\ <Key>KP_2: string(0x1b) string("Or") \n\ <Key>Down: string(0x1b) string("Or") \n\ <Key>KP_3: string(0x1b) string("Os") \n\ <Key>F35: string(0x1b) string("Os") \n\ <Key>KP_4: string(0x1b) string("Ot") \n\ <Key>Left: string(0x1b) string("Ot") \n\ <Key>KP_5: string(0x1b) string("Ou") \n\ <Key>F31: string(0x1b) string("Ou") \n\ <Key>KP_6: string(0x1b) string("Ov") \n\ <Key>Right: string(0x1b) string("Ov") \n\ <Key>KP_7: string(0x1b) string("Ow") \n\ <Key>F27: string(0x1b) string("Ow") \n\ <Key>KP_8: string(0x1b) string("Ox") \n\ <Key>KP_9: string(0x1b) string("Oy") \n\ <Key>F29: string(0x1b) string("Oy") \n