home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!auspex-gw!guy
- From: guy@Auspex.COM (Guy Harris)
- Newsgroups: comp.sys.sun.apps
- Subject: Re: Need xterm keyboard mappings
- Message-ID: <16305@auspex-gw.auspex.com>
- Date: 9 Jan 93 01:48:50 GMT
- References: <1993Jan8.202451.18761@infonode.ingr.com>
- Sender: news@auspex-gw.auspex.com
- Organization: Auspex Systems, Santa Clara
- Lines: 38
- Nntp-Posting-Host: auspex.auspex.com
-
- >I have figured out many of the keyboard key mappings for xterm, but there
- >are a few that baffle me. These are the 'diamond' keys, alt graph and
- >delete. I assume the 'diamond' keys and alt graph key are key modifiers
- >much like shift and control. How do I make use of these keys as modifiers,
-
- The "diamond" keys are "Meta" keys, so you should probably use "Meta",
- or do whatever it is that Xt expects you to do to use the Meta key.
-
- Alt Graph is the "Mode_switch" key; it may or may not have a modifier
- associated with it (the theory is that it's like Shift, in that Alt
- Graph plus some key would cause that key to generate a character other
- than the ones it generates with neither Alt Graph nor Shift down or with
- Shift down - it's used in some non-US keyboard layouts).
-
- >and how do I distinguish between the two delete keys?
-
- Unfortunately, there's no "KP_Delete" keysym, so the keypad "delete" key
- appears to have the keysym "Delete", just as the other "delete" key
- does.
-
- If you want to distinguish between them, you'll have to bind another
- keysym to the keypad "Delete" key, using "xmodmap".
-
- >Also, how do I switch
- >modes such that my numeric keypad will emit numbers or control sequences
- >depending on the mode?
-
- If you're using the Open Windows server, the Num Lock key will do it for
- you.
-
- If you're using the MIT X11R4 or MIT X11R5 server, there may be a patch
- that will cause the Num Lock key to do it for you.
-
- >For the above mappings that use Alt, I would like to use the 'Alt Graph'
- >key instead.
-
- Use "xmodmap" to bind the "Alt Graph" key to the "Alt_R" keysym, and to
- hang the "Alt" modifier from it; that will cause it to be an "Alt" key.
-