home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / hp / 14153 < prev    next >
Encoding:
Text File  |  1992-12-16  |  3.7 KB  |  113 lines

  1. Newsgroups: comp.sys.hp
  2. Path: sparky!uunet!think.com!paperboy.osf.org!osf.org!dbrooks
  3. From: dbrooks@osf.org (David Brooks)
  4. Subject: Re: How to use the ALT-key to produce 8-Bit Chars in xterm
  5. Message-ID: <1992Dec16.210131.29286@osf.org>
  6. Followup-To: comp.sys.hp,comp.windows.x,comp.windows.x.i386unix
  7. Sender: news@osf.org (USENET News System)
  8. Organization: Open Software Foundation
  9. Date: Wed, 16 Dec 1992 21:01:31 GMT
  10. Lines: 101
  11.  
  12. Sorry; I should have crossposted this, which also appear in comp.windows.x...
  13.  
  14. After some experimentation, I came up with this set of xmodmap commands.
  15. It's still not quite right.  It works on my HP keyboard, with the
  16. standard HP server that has its own idea of what the extend-char
  17. character set should be (for example, extend-c is c-cedilla, even though
  18. there's no c-cedilla engraving).
  19.  
  20. What this gets me is the ability to use xterm, emacs and Xt-based
  21. programs without long lists of bindings for any of them.  In Xt
  22. programs, I use the left meta-key for accelerators, and the right
  23. meta-key for 8-bit insertion.  Or is it the other way round?  It's still
  24. not quite right: meta-> and meta-< don't work.
  25.  
  26. In emacs, set meta-flag true, and use the ^Q prefix to insert 8-bit
  27. characters.  In xterm, eightBitInput is true.
  28.  
  29. And make sure your fonts match your intentions.
  30. --------
  31. ! Here's what this achieves:
  32. ! xterm can use right or left
  33. ! emacs uses right
  34. ! toolkit uses left for Meta translations, right for input
  35.  
  36. clear mod1
  37. clear mod2
  38.  
  39. ! These are keycodes for the HP 46021A
  40. keycode 10 = Mode_switch Meta_R
  41. keycode 11 = Meta_L
  42. keycode 54 = VoidSymbol
  43. add mod1 = Meta_L Meta_R
  44. add mod2 = Mode_switch
  45.  
  46. ! Undo the HP keyboard 8-bit mapping
  47. keysym A = a A aacute
  48. keysym B = b B acircumflex
  49. keysym C = c C atilde
  50. keysym D = d D adiaeresis
  51. keysym E = e E aring
  52. keysym F = f F ae
  53. keysym G = g G ccedilla
  54. keysym H = h H egrave
  55. keysym I = i I eacute
  56. keysym J = j J ecircumflex
  57. keysym K = k K ediaeresis
  58. keysym L = l L igrave
  59. keysym M = m M iacute
  60. keysym N = n N icircumflex
  61. keysym O = o O idiaeresis
  62. keysym P = p P eth
  63. keysym Q = q Q ntilde
  64. keysym R = r R ograve
  65. keysym S = s S oacute
  66. keysym T = t T ocircumflex
  67. keysym U = u U otilde
  68. keysym V = v V odiaeresis
  69. keysym W = w W division multiply
  70. keysym X = x X oslash
  71. keysym Y = y Y ugrave
  72. keysym Z = z Z uacute
  73. keysym bracketleft = bracketleft braceleft Ucircumflex ucircumflex
  74. keysym backslash = backslash bar Udiaeresis udiaeresis
  75. keysym bracketright = bracketright braceright Yacute yacute
  76.  
  77. keysym grave = grave asciitilde agrave thorn
  78. keysym 1 = 1 exclam plusminus exclamdown
  79. keysym 2 = 2 at twosuperior Agrave
  80. keysym 3 = 3 numbersign threesuperior sterling
  81. keysym 4 = 4 dollar acute currency
  82. keysym 5 = 5 percent mu yen
  83. keysym 6 = 6 asciicircum paragraph THORN
  84. keysym 7 = 7 ampersand periodcentered brokenbar
  85. keysym 8 = 8 asterisk cedilla ordfeminine
  86. keysym 9 = 9 parenleft onesuperior diaeresis
  87. keysym 0 = 0 parenright degree copyright
  88. keysym minus = minus underscore ssharp ydiaeresis
  89. keysym equal = equal plus onehalf guillemotleft
  90. keysym semicolon = semicolon colon guillemotright masculine
  91. keysym apostrophe = apostrophe quotedbl section cent
  92. keysym comma = comma less notsign onequarter
  93. keysym period = period greater registered threequarters
  94. keysym slash = slash question macron questiondown
  95.  
  96. ! These are specific to the HP keyboard...
  97. ! Reset/Break added as Escape (easy to swipe it).
  98. keycode 15 = Escape
  99.  
  100. ! Print/Enter becomes DEL (easier then shift-esc, and no vuewm menu clash)
  101. keycode 87 = Delete
  102.  
  103. ! Disable Caps key.  Generating void is an optional extra; I'd rather not.
  104. clear lock
  105. !keycode 55 = VoidSymbol
  106.  
  107. -- 
  108. David Brooks                    dbrooks@osf.org
  109. Open Software Foundation            uunet!osf.org!dbrooks
  110. Allⁿberall und ewig blauen licht die Fernen!  Ewig... ewig... ewig...
  111.  
  112.  
  113.