From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,3d79bb2a238f5a2 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1992-06-02 21:43:26 PST Path: sparky!uunet!ferkel.ucsb.edu!news.cs.indiana.edu!att!linac!uwm.edu!zaphod.mps.ohio-state.edu!mips!mips!munnari.oz.au!yoyo.aarnet.edu.au!sirius.ucs.adelaide.edu.au!nautilus.itd.adelaide.edu.au!andrewr From: andrewr@nautilus.itd.adelaide.edu.au (Andrew Rutherford) Newsgroups: comp.sys.dec Subject: Re: Digital Keyboards - escape vs. tilde Keywords: escape, xmodmap, xdm Message-ID: <7329@sirius.ucs.adelaide.edu.au> Date: 2 Jun 92 23:51:55 GMT References: <1992Jun2.115535.6575@devvax.mincom.oz.au> Sender: news@ucs.adelaide.edu.au Reply-To: andrewr@itd.adelaide.edu.au Organization: Information Technology Division, Adelaide University, Australia Nntp-Posting-Host: nautilus.itd.adelaide.edu.au In article <1992Jun2.115535.6575@devvax.mincom.oz.au>, anita@devvax.mincom.oz.au writes: + Path: sirius.ucs.adelaide.edu.au!yoyo.aarnet.edu.au!munnari.oz.au!bunyip.cc.uq.oz.au!iris.mincom.oz.au!devvax.mincom.oz.au!anita + From: anita@devvax.mincom.oz.au + We are having a load of DECstations delivered. The users will be using + emacs on Primos and unix. They need access to the escape key and the tilde + key, so using the decterm option to have ~ as will not be good + enough. Well, as you're using emacs, you may want to use Alt as the Meta Key, so you don't need escape as much, and just use F11 as escape when nessesary. The problem you do have is that emacs assumes that whatever is defined as mod1 is the Meta key, but mod1 are th compose keys and mod2 are the Alt keys. To get around this you do something like this: xmodmap -e "clear mod1" \ -e "clear mod2" \ -e "keycode 172 = Meta_L Alt_L" \ -e "keycode 178 = Meta_R Alt_R" \ -e "keycode 173 = Multi_key" \ -e "keycode 177 = Multi_key" \ -e "add mod1 = Meta_L Meta_R" \ -e "add mod2 = Multi_key Multi_key" to swap the mods around. Note the keycode lines are not really nessesary, I put them in more for testing than anything else (before I found out about emacs's assumption about Meta keys being mod1, as they were originally bound as "Alt_L Meta_L". Doesnt seem to make any difference either way.) [ ... Digression on pet peeve follows ... ] I have this in my .xsession file as I use xdm (the R5 version) so I can get Xauthority records for use on student machines, etc. DEC still haven't got this right in OSF/1, their xdm has been kludged not to produce Xauthority records as their X programs _still_ don't understand them. If OSF/1 V2.0 comes out (for whatever platform) still not understanding Xauthority records, we're just going to dump all their X stuff and run MIT R5. Hope this helps, Andrew. -- /* * Andrew Rutherford andrewr@itd.adelaide.edu.au * +61 8 228 5661 Real Programmers always confuse Christmas and * Room 1069, Adelaide Uni Halloween because OCT 31 == DEC 25 ! */