home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / dec / 6015 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  2.4 KB

  1. Xref: sparky comp.sys.dec:6015 comp.unix.ultrix:8372
  2. Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!swrinde!zaphod.mps.ohio-state.edu!caen!batcomputer!munnari.oz.au!yoyo.aarnet.edu.au!news.adelaide.edu.au!andrewr
  3. From: andrewr@iagu.itd.adelaide.edu.au (Andrew Rutherford)
  4. Newsgroups: comp.sys.dec,comp.unix.ultrix
  5. Subject: Re: Alt key on my DECstation
  6. Date: 17 Nov 1992 19:45:57 GMT
  7. Organization: The University of Adelaide
  8. Lines: 44
  9. Message-ID: <1ebi5lINNj46@huon.itd.adelaide.edu.au>
  10. References: <Bxtvq6.Ew2@usenet.ucs.indiana.edu>
  11. NNTP-Posting-Host: iagu.itd.adelaide.edu.au
  12. X-Newsreader: TIN [version 1.1 PL6]
  13.  
  14. M Darrin Chaney (mdchaney@fractal.ucs.indiana.edu) wrote:
  15.  
  16. + Here's a question that I hope someone can answer.  I've got a DECstation
  17. + 5000/120 running Ultrix 4.2a.  My keyboard, an LK401-AA (Rev. A01) comes
  18. + complete with two Compose keys and two Alt keys.  Unfortunately, all
  19. + applications that have a use for both (DECwrite, for instance) insist on
  20. + making me use the Compose key for both.  If I hold it, and press another
  21. + key, it is an Alt key.  If I press it and let it up, it's a Compose key.
  22. + The same holds true for things like Mwm which has a use only for Alt.  I
  23. + have to use Compose in its place for things like the window menus (minimize,
  24. + maximize, etc.)
  25.  
  26. Try this:
  27.  
  28. /usr/bin/X11/xmodmap \
  29.     -e "clear mod1" \
  30.     -e "clear mod2" \
  31.     -e "add mod1 = Alt_L Alt_R" \
  32.     -e "add mod2 = Multi_key Multi_key"
  33.  
  34.     I had problems with emacs wanting me to press the compose key for
  35. Meta, and I discovered emacs assumes that the modifier mod1 is the Alt
  36. keys, and that Dec's Xws starts up with Compose (otherwise known as
  37. Multi_key) as mod1 and Alt as mod2. The above swaps them around.
  38.  
  39.     Note: this works for me with the Xws and emacs that DEC
  40. provide with OSF/1, your mileage may vary with apps other than emacs.
  41. Mwm also understands the Alt as Alt once you've done this.
  42.  
  43.     Possible suggestion for DEC: It would be nice if you changed
  44. the Xserver so the keys defaulted to that way around so that your own
  45. apps work correctly. On the other hand, I mentioned this to my local
  46. DEC office back in May (when I got OSF/1, I seem to recall hitting the
  47. same problem in Ultrix before then), so something may be being done
  48. about it.
  49.  
  50. Cya all,
  51.     Andrew.
  52.  
  53. /*
  54.  * Andrew Rutherford                 andrewr@itd.adelaide.edu.au
  55.  * +61 8 228 5669            Real Programmers always confuse Christmas and
  56.  * Room 1060, Adelaide Uni      Halloween because OCT 31 == DEC 25 !
  57.  */
  58.