Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!swrinde!zaphod.mps.ohio-state.edu!rpi!julius.cs.uiuc.edu!apple!agate!shelby!helens!baroque!jim From: jim@baroque.Stanford.EDU (James Helman) Newsgroups: comp.sys.sgi Subject: Re: xterm key remapping Message-ID: Date: 17 Sep 90 19:58:37 GMT References: <1990Sep14.170021.28769@eagle.lerc.nasa.gov> Sender: news@helens.Stanford.EDU Distribution: usa Organization: Stanford University Lines: 53 In-reply-to: eddc@opus.lerc.nasa.gov's message of 14 Sep 90 17:00:21 GMT X keyboard bindings can be changed globally using xmodmap, e.g. the following binds the caps lock key to and changes the backspace key to . (Which is after all, where they were before international keyboards forced finger dances such as the Control Stretch Twist or Control Two Hand Boogie upon us.) xmodmap - << xxx clear lock add control = Caps_Lock keycode 66 = Delete Delete xxx xmodmap -pk prints out the keyboard table. If you want to change particular keys under xterm, change mouse button actions or bind function keys to strings, you can modify xterm's resources to create your own keymaps. The following lines in a .Xdefaults file or used as input to xrdb will create special keymaps for the function keys. XTerm*VT100.Translations: #override \ F1: string("ls -atl") string(0x0d) \n\ F2: string("ls -alt | head") string(0x0d) \n\ F10: keymap(mh) \n\ F11: keymap(dbx) \n\ F12: keymap(None) \n\ XTerm*VT100.mhKeymap.translations: \ F1: string("prev") string(0x0d) \n\ F2: string("comp") string(0x0d) \n\ F3: string("show") string(0x0d) \n\ F4: string("repl") string(0x0d) \n\ F5: string("next") string(0x0d) \n\ F6: string("forw") string(0x0d) \n\ F7: string("scan last:10") string(0x0d) \n\ F8: string("rmm") string(0x0d) XTerm*VT100.dbxKeymap.translations: \ F1: string("next") string(0x0d) \n\ F2: string("step") string(0x0d) \n\ F3: string("continue") string(0x0d) \n\ F4: string("print ") insert-selection(PRIMARY, CUT_BUFFER0)\n\ F5: string("stop at ") insert-selection(PRIMARY, CUT_BUFFER0)\n\ F6: string("up") string(0x0d) \n\ F7: string("down") string(0x0d) \n\ F8: string("status") string(0x0d) Jim Helman Department of Applied Physics Durand 012 Stanford University FAX: (415) 725-3377 (jim@KAOS.stanford.edu) Work: (415) 723-9127