home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / bsd / 9080 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  4.6 KB

  1. Path: sparky!uunet!mcsun!Germany.EU.net!unidui!du9ds3!veit
  2. From: veit@du9ds3.fb9dv.uni-duisburg.de (Holger Veit)
  3. Newsgroups: comp.unix.bsd
  4. Subject: Re: CODRV EXPERIENCES, Teil zwei.. (part II)
  5. Date: 19 Nov 92 18:18:05 GMT
  6. Organization: Uni-Duisburg FB9 Datenverarbeitung
  7. Lines: 112
  8. Distribution: comp
  9. Message-ID: <veit.722197085@du9ds3>
  10. References: <BxM1qt.2xC@unx.sas.com> <STARK.92Nov12154408@sbstark.cs.sunysb.edu>     <veit.721670337@du9ds3> <JKH.92Nov16095746@esel.lotus.com>     <veit.721914354@du9ds3> <JKH.92Nov16125647@whisker.lotus.ie> <JKH.92Nov17142633@whisker.lotus.ie>
  11. Reply-To: veit@du9ds3.uni-duisburg.de
  12. NNTP-Posting-Host: du9ds3.fb9dv.uni-duisburg.de
  13.  
  14. In <JKH.92Nov17142633@whisker.lotus.ie> jkh@whisker.lotus.ie (Jordan K. Hubbard) writes:
  15.  
  16.     >Just to clear the air on CODRV - I made the correct patch to conf.c
  17.     >that the documentation had incorrectly described and XFree86 1.1 came up
  18.     >smiling.  I did not do anything to X except apply the provided patches
  19.     >and remake a server.  Well done.
  20.  
  21.     >Now the bell works, but the TIOCCONS ioctl() is either broken or /dev/console
  22.     >has changed device numbers (I should, in all fairness, look at this).
  23.  
  24. /dev/console is c 0 0 and is internally redirected to the entry which was 
  25. /dev/vga in the old X-patched kernel. There is a problem which returning 
  26. from X mode when there is a device (I have to figure out this); my ad-hoc 
  27. recommendation was to delete the device which was c 12 0 from the 
  28. /dev directory. An old documentation said to install it as /dev/pccons, 
  29. but this makes problems. The pccons device must remain in cons.c, however, 
  30. and mustn't be deleted (to get a free slot). The disadvantage is, that the
  31. ps -aux shows ?? in place of processes started from the console then.
  32.  
  33.     >By and large, I'd say it was worth it just for the bell alone - now I
  34.     >finally know when someone talk(1)s me in another window! (I run olvwm,
  35.     >so they're not always visible).
  36.  
  37.     >Outstanding issues:
  38.  
  39.     >Figure out what happened to xterm -C / xconsole.
  40.  
  41. This is interesting. With twm and/or olvwm I could start a background
  42. xterm -C &, and there were no difficulties to send messages
  43. (echo hello >/dev/console) or get nasty syslog error messages.
  44.  
  45.     >Figure out keycap(5) format well enough to remap my caps lock key
  46.     >to a control key.  This is not as easy as it sounds since the obvious
  47.  
  48.     >jkh|jkhmap:My keyboard with deleted ctl key and ctl->caps_lock mapping:\
  49.     >        :D30:t1#58:tc=default:
  50.  
  51.     >Doesn't seem to work.  I'm using the key down codes that keynum reports.
  52.  
  53. Oh, I should really improve my documentation. What is left unclear is 
  54. the absolute precedence of the :de: capability, that means:
  55. if you have a tc=default line, then your entry above is really
  56.  
  57. jkh|jkhmap:My keyboard with deleted ctl key and ctl->caps_lock mapping:\
  58.         :D30:t1#58:de:
  59.  
  60. 'keymap' looks for :de: first and restores a default mapping and ignores
  61. everything else. The 'default' keyboard is the last resort if everything
  62. else is garbled. If you have an own mapping, the creation of the map always
  63. starts from the 'default' (=US) keyboard by default, and overloads all the
  64. keys that are mentioned. You might see from different maps, that they do
  65. lots of things, and do not end with the tc=default.
  66. So try again without the tc=default.
  67. D30 indeed makes the old CAPS key unavailable, t1#58 creates a CTRL-KEY
  68. on key #58, which is already the LEFT-CTRL key in the default map.
  69. I don't know your keyboard, mine looks something like the following:
  70.  
  71.    .....
  72.    SHIFT|A|S|....
  73.    -----+-+-+...
  74.    CAPS|<>|Z|X|...
  75.    ----+--+-+-+...
  76.    CTRL|  |ALT|SPACE....
  77.    ----+  +---+-----
  78.  
  79. The above CAPS key is 30, the CTRL is 58. To disable CAPS, and having
  80. CAPS instead of CTRL, use:
  81.  
  82.    :D30:ca#58:
  83.  
  84. which gives you
  85.  
  86.    .....
  87.    SHIFT|A|S|....
  88.    -----+-+-+...
  89.    NULL|<>|Z|X|...
  90.    ----+--+-+-+...
  91.    CAPS|  |ALT|SPACE....
  92.    ----+  +---+-----
  93.  
  94. To swap CTRL and CAPS, enter 
  95.  
  96.    :t1#30:ca#58:
  97.  
  98. which gives you
  99.  
  100.    .....
  101.    SHIFT|A|S|....
  102.    -----+-+-+...
  103.    CTRL|<>|Z|X|...
  104.    ----+--+-+-+...
  105.    CAPS|  |ALT|SPACE....
  106.    ----+  +---+-----
  107.  
  108. I think some tutorial to the logic of keymaps is a good idea, I'll write
  109. some. Another problem, you haven't fallen into it, fortunately, is that
  110. keynum responds with hex numbers and the keycap entries require decimals.
  111.  
  112. >Herr Veit?  Hilfe?
  113.  
  114. Here am I. Hope the above helps.
  115.  
  116.  
  117. >                Jordan
  118.  
  119. Holger
  120.  
  121. -- 
  122. |  |   / Dr. Holger Veit         | INTERNET: veit@du9ds3.fb9dv.uni-duisburg.de
  123. |__|  /  University of Duisburg  | "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  124. |  | /   Dept. of Electr. Eng.   |   Sorry, the above really good fortune has
  125. |  |/    Inst. f. Dataprocessing |      been CENSORED because of obscenity"
  126.