home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / windows / x / 14185 < prev    next >
Encoding:
Text File  |  1992-07-22  |  1.2 KB  |  32 lines

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