home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!ods!chris
- From: chris@ods.com (Chris Atkins)
- Subject: Re: Changing keymappings on a per-application basis
- Message-ID: <1992Jul22.184834.16481@ods.com>
- Organization: Optical Data Systems, Inc.
- X-Newsreader: Tin 1.1 PL4
- References: <FMRCO!MSOMMER.92Jul21101441@ampere.uunet.uu.net>
- Distribution: usa
- Date: Wed, 22 Jul 1992 18:48:34 GMT
- Lines: 19
-
- fmrco!msommer@uunet.uu.net (Mark Sommer) writes:
- : I would like to run a terminal-based application, requiring special
- : keyboard keypad mappings, inside an xterm.
- :
- : Is there a way to change the keyboard mappings -- and later restore
- : them -- for a single xterm? I would like to be able to do this from a
- : script, but would settle for doing it from a program. It would also be
- : reasonable to dedicate a particular xterm to running this application
- : -- as opposed to an arbitrary xterm -- if that makes the problem
- : tractable. If I can't do this, can I change/restore the mappings for all
- : xterms?
- :
-
- XChangeKeyboardMapping changes the keycode to keysym mapping for all clients
- on the server. You might look at using XGetKeyboardMapping to get the original
- keyboard mapping on enter notify events and restore it on leave notify events.
-
- Chris Atkins
- chris@ods.com
-