home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.ultrix
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!malgudi.oar.net!chemabs!lwv26
- From: lwv26@cas.org (Larry W. Virden)
- Subject: Re: How do I redefine my xterm keys?
- Message-ID: <1992Dec23.052242.844@cas.org>
- Followup-To: comp.unix.ultrix
- Sender: usenet@cas.org
- Reply-To: lvirden@cas.org (Larry W. Virden)
- Organization: Nedriv Software and Shoe Shiners, Uninc.
- References: <1992Dec10.191227.11369@ed8200.ped.pto.ford.com> <1992Dec18.204342.17840@netnews.alf.dec.com>
- Date: Wed, 23 Dec 1992 05:20:12 GMT
- Lines: 39
-
- xmodmap can only shuffle or duplicate key values and key symbols around on
- a keyboard. (In an aside, check out xkeyboard, a neat graphical interface
- to xmodmap!) To assign actual escape values to keys, use a resource
- similar to something like this (placed in $HOME/app-defaults/XTerm for
- instance)
-
- !
- vt220*sunFunctionKeys: True
- vt220*VT100.Translations: #override <Key>R5: keymap(vt)
- vt220*vtKeymap.translations: \
- <Key>R5: keymap(None) \n\
- <Key>KP_Enter: string(0x1B) string("OM") \n\
- <Key>R1: string(0x1B) string("OP") \n\
- <Key>R2: string(0x1B) string("OQ") \n\
- <Key>R3: string(0x1B) string("OR") \n\
- <Key>Num_Lock: string(0x1B) string("OS") \n\
- <Key>KP_Add: string(0x1B) string("Ol") \n\
- <Key>KP_Subtract: string(0x1B) string("Om") \n\
- <Key>KP_Decimal: string(0x1B) string("On") \n\
- <Key>Insert: string(0x1B) string("Op") \n\
- <Key>R13: string(0x1B) string("Oq") \n\
- <Key>Down: string(0x1B) string("Or") \n\
- <Key>R15: string(0x1B) string("Os") \n\
- <Key>Left: string(0x1B) string("Ot") \n\
- <Key>R11: string(0x1B) string("Ou") \n\
- <Key>Right: string(0x1B) string("Ov") \n\
- <Key>R7: string(0x1B) string("Ow") \n\
- <Key>Up: string(0x1B) string("Ox") \n\
- <Key>R9: string(0x1B) string("Oy") \n\
- <Key>F9: string(0x1B) string("OA") \n\
- <Key>F10: string(0x1B) string("OB") \n\
- <Key>F28: string(0x7F) \n\
- <Key>SunXK_F37: string(0x1B) string("OC") \n\
- <Key>SunXK_F36: string(0x1B) string("OD")
- !
- --
- Larry W. Virden UUCP: osu-cis!chemabs!lvirden
- Same Mbox: BITNET: lvirden@cas INET: lvirden@cas.org
- Personal: 674 Falls Place, Reynoldsburg, OH 43068-1614
-