home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / aix / 9619 < prev    next >
Encoding:
Internet Message Format  |  1992-09-12  |  2.1 KB

  1. Path: sparky!uunet!paladin.american.edu!darwin.sura.net!spool.mu.edu!uwm.edu!rutgers!concert!duke!duke.cs.duke.edu!hsg
  2. From: hsg@cs.duke.edu (Henry Greenside)
  3. Newsgroups: comp.unix.aix
  4. Subject: xmodmap problems in AIX 3.2.2
  5. Message-ID: <HSG.92Sep12235034@macbeth.cs.duke.edu>
  6. Date: 13 Sep 92 03:50:34 GMT
  7. Sender: news@duke.cs.duke.edu
  8. Distribution: comp.unix.aix
  9. Organization: Duke University CS Dept., Durham, NC
  10. Lines: 55
  11. Nntp-Posting-Host: macbeth.cs.duke.edu
  12.  
  13.  
  14. I am using xmodmap to reassociate keys on my RS/6000
  15. 340 keyboard, e.g., move ESC to the grave (`) key,
  16. interchange the CAPS LOCK and left control key, and so
  17. on. I then have a statement of the form:
  18.  
  19.     usermodmap=$HOME/.Xmodmap-$HOSTTYPE
  20.     if [ -f $usermodmap ]; then
  21.       xmodmap $usermodmap
  22.     fi
  23.  
  24. in my .xinitrc file to execute xmodmap when starting up
  25. X.
  26.  
  27. I have found two problems:
  28.  
  29. 1. Although I have verified that the xmodmap command is
  30. being executed when I start X, I find that the keymap
  31. changes are actually not being made, i.e., I have to go
  32. into an xterm window and run "xmodmap .Xmodmap-rs6000"
  33. directly. All other .xinitrc commands seem to run ok.
  34.  
  35. 2. Not all X window programs respect the keyboard
  36. changes, which is a REAL pain, making some programs
  37. unusable.  E.g., after executing xmodmap, the tilde (~)
  38. character works correctly in a xterm window, but some
  39. other programs (both AIX and public domain) that
  40. require a pathname as text input will treat ~ as a
  41. "quit" mouse selection and cause a window to exit. I
  42. have exchanged DEL and BACKSPACE which work in a xterm,
  43. but the exchange isn't recognized in the "ftp" program,
  44. when invoked in a xterm.
  45.  
  46. Has anyone had similar problems? Is there a fix?  I
  47. include below the actual changes that are executed by
  48. xmodmap.
  49.  
  50.     Henry
  51.  
  52.  
  53.  
  54. remove Lock = Caps_Lock        ! Swap Caps_Lock and Control_L
  55. remove Control = Control_L
  56. keysym Control_L = Caps_Lock
  57. keysym Caps_Lock = Control_L
  58. add Lock = Caps_Lock
  59. add Control = Control_L
  60.  
  61. keysym BackSpace = Delete   ! Swap Backspace and Delete
  62. keysym Delete = BackSpace
  63.  
  64. ! Move ESC to grave key, grave to ESC key, while preserving ~
  65.  
  66. keysym grave  = Escape asciitilde grave
  67. keysym Escape = grave
  68.