home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / sun / apps / 2925 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  2.0 KB

  1. Path: sparky!uunet!auspex-gw!guy
  2. From: guy@Auspex.COM (Guy Harris)
  3. Newsgroups: comp.sys.sun.apps
  4. Subject: Re: Need xterm keyboard mappings
  5. Message-ID: <16305@auspex-gw.auspex.com>
  6. Date: 9 Jan 93 01:48:50 GMT
  7. References: <1993Jan8.202451.18761@infonode.ingr.com>
  8. Sender: news@auspex-gw.auspex.com
  9. Organization: Auspex Systems, Santa Clara
  10. Lines: 38
  11. Nntp-Posting-Host: auspex.auspex.com
  12.  
  13. >I have figured out many of the keyboard key mappings for xterm, but there
  14. >are a few that baffle me.  These are the 'diamond' keys, alt graph and
  15. >delete.  I assume the 'diamond' keys and alt graph key are key modifiers
  16. >much like shift and control.  How do I make use of these keys as modifiers,
  17.  
  18. The "diamond" keys are "Meta" keys, so you should probably use "Meta",
  19. or do whatever it is that Xt expects you to do to use the Meta key.
  20.  
  21. Alt Graph is the "Mode_switch" key; it may or may not have a modifier
  22. associated with it (the theory is that it's like Shift, in that Alt
  23. Graph plus some key would cause that key to generate a character other
  24. than the ones it generates with neither Alt Graph nor Shift down or with
  25. Shift down - it's used in some non-US keyboard layouts).
  26.  
  27. >and how do I distinguish between the two delete keys?
  28.  
  29. Unfortunately, there's no "KP_Delete" keysym, so the keypad "delete" key
  30. appears to have the keysym "Delete", just as the other "delete" key
  31. does.
  32.  
  33. If you want to distinguish between them, you'll have to bind another
  34. keysym to the keypad "Delete" key, using "xmodmap".
  35.  
  36. >Also, how do I switch
  37. >modes such that my numeric keypad will emit numbers or control sequences
  38. >depending on the mode?
  39.  
  40. If you're using the Open Windows server, the Num Lock key will do it for
  41. you.
  42.  
  43. If you're using the MIT X11R4 or MIT X11R5 server, there may be a patch
  44. that will cause the Num Lock key to do it for you.
  45.  
  46. >For the above mappings that use Alt, I would like to use the 'Alt Graph'
  47. >key instead.
  48.  
  49. Use "xmodmap" to bind the "Alt Graph" key to the "Alt_R" keysym, and to
  50. hang the "Alt" modifier from it; that will cause it to be an "Alt" key.
  51.