Article View: comp.sys.sun
Article #7084Xterm Keypad redefinition file
From: David Swanger
Date: Thu, 21 Mar 1991 21:31
Date: Thu, 21 Mar 1991 21:31
54 lines
3073 bytes
3073 bytes
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
Technical Details
Message-ID:
<2012@brchh104.bnr.ca>Path:
arc1-ca.pugleaf.net!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-requestShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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