🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.dec
Article #3774

Re: Alt key on my DECstation

#3774
From: Andrew Rutherford
Date: Tue, 17 Nov 1992 19:45
44 lines
2482 bytes
M Darrin Chaney (mdchaney@fractal.ucs.indiana.edu) wrote:

+ Here's a question that I hope someone can answer.  I've got a DECstation
+ 5000/120 running Ultrix 4.2a.  My keyboard, an LK401-AA (Rev. A01) comes
+ complete with two Compose keys and two Alt keys.  Unfortunately, all
+ applications that have a use for both (DECwrite, for instance) insist on
+ making me use the Compose key for both.  If I hold it, and press another
+ key, it is an Alt key.  If I press it and let it up, it's a Compose key.
+ The same holds true for things like Mwm which has a use only for Alt.  I
+ have to use Compose in its place for things like the window menus (minimize,
+ maximize, etc.)

Try this:

/usr/bin/X11/xmodmap \
	-e "clear mod1" \
	-e "clear mod2" \
	-e "add mod1 = Alt_L Alt_R" \
	-e "add mod2 = Multi_key Multi_key"

	I had problems with emacs wanting me to press the compose key for
Meta, and I discovered emacs assumes that the modifier mod1 is the Alt
keys, and that Dec's Xws starts up with Compose (otherwise known as
Multi_key) as mod1 and Alt as mod2. The above swaps them around.

	Note: this works for me with the Xws and emacs that DEC
provide with OSF/1, your mileage may vary with apps other than emacs.
Mwm also understands the Alt as Alt once you've done this.

	Possible suggestion for DEC: It would be nice if you changed
the Xserver so the keys defaulted to that way around so that your own
apps work correctly. On the other hand, I mentioned this to my local
DEC office back in May (when I got OSF/1, I seem to recall hitting the
same problem in Ultrix before then), so something may be being done
about it.

Cya all,
	Andrew.

/*
 * Andrew Rutherford                 andrewr@itd.adelaide.edu.au
 * +61 8 228 5669            Real Programmers always confuse Christmas and
 * Room 1060, Adelaide Uni      Halloween because OCT 31 == DEC 25 !
 */
Technical Details
Message-ID: <1ebi5lINNj46@huon.itd.adelaide.edu.au>
Path: arc1-ca.pugleaf.net!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
References: <Bxtvq6.Ew2@usenet.ucs.indiana.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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
From: andrewr@iagu.itd.adelaide.edu.au (Andrew Rutherford)
Newsgroups: comp.sys.dec,comp.unix.ultrix
Subject: Re: Alt key on my DECstation
Date: 17 Nov 1992 19:45:57 GMT
Organization: The University of Adelaide
Lines: 44
Message-ID: <1ebi5lINNj46@huon.itd.adelaide.edu.au>
References: <Bxtvq6.Ew2@usenet.ucs.indiana.edu>
NNTP-Posting-Host: iagu.itd.adelaide.edu.au
X-Newsreader: TIN [version 1.1 PL6]