Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!emory!gatech!mcnc!rti!bnrunix!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request From: SWANGER@ducvax.auburn.edu (David Swanger) Newsgroups: comp.sys.sun Subject: Xterm Keypad redefinition file Keywords: Source Message-ID: <2012@brchh104.bnr.ca> Date: 21 Mar 91 21:31:00 GMT Sender: news@brchh104.bnr.ca Organization: Sun-Spots Lines: 54 Approved: Sun-Spots@rice.edu X-Original-Date: Fri, 15 Mar 1991 09:06 CST X-Sun-Spots-Digest: Volume 10, Issue 48, message 15 X-Note: Submissions: sun-spots@rice.edu, Admin: sun-spots-request@rice.edu 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 \ KP_Add: string(0x1b) string("Ol") \n\ F9: string(0x1b) string("[D") \n\ SunF36: string(0x1b) string("[A") \n\ F10: string(0x1b) string("[B") \n\ SunF37: string(0x1b) string("[C") \n\ F24: string(0x1b) string("OP") \n\ KP_Equal: string(0x1b) string("OP") \n\ F25: string(0x1b) string("OQ") \n\ KP_Divide: string(0x1b) string("OQ") \n\ F26: string(0x1b) string("OR") \n\ KP_Multiply: string(0x1b) string("OR") \n\ KP_Subtract: string(0x1b) string("OS") \n\ KP_Enter: string(0x1b) string("OM") \n\ KP_Decimal: string(0x1b) string("On") \n\ KP_0: string(0x1b) string("Op") \n\ Insert: string(0x1b) string("Op") \n\ KP_1: string(0x1b) string("Oq") \n\ R13: string(0x1b) string("Oq") \n\ KP_2: string(0x1b) string("Or") \n\ Down: string(0x1b) string("Or") \n\ KP_3: string(0x1b) string("Os") \n\ F35: string(0x1b) string("Os") \n\ KP_4: string(0x1b) string("Ot") \n\ Left: string(0x1b) string("Ot") \n\ KP_5: string(0x1b) string("Ou") \n\ F31: string(0x1b) string("Ou") \n\ KP_6: string(0x1b) string("Ov") \n\ Right: string(0x1b) string("Ov") \n\ KP_7: string(0x1b) string("Ow") \n\ F27: string(0x1b) string("Ow") \n\ KP_8: string(0x1b) string("Ox") \n\ KP_9: string(0x1b) string("Oy") \n\ F29: string(0x1b) string("Oy") \n