From: H. Peter Anvin N9ITP (hpa@casbah.acns.nwu.edu)
Date: 10/14/92


From: hpa@casbah.acns.nwu.edu (H. Peter Anvin N9ITP)
Subject: Re: Xfree86-1.1, the ALTGR key and norwegain (european) keyboards
Date: 14 Oct 1992 08:51:47 GMT

In article <1992Oct13.010146.20348@klaava.Helsinki.FI> of comp.os.linux,
  hyvatti@klaava.Helsinki.FI (Jaakko Hyvatti) writes:
> In article <1992Oct12.135518.21221@ifi.uio.no> janl@ifi.uio.no (Jan Nicolai Langfeldt) writes:
> >The norwegain keybard has some characters on the key-front (as opposed
> >to key-top). We usualy get to them with the help of ALTGR. This worked
> >with my Xmodmap.no (same as the one you find on the linux ftp sites)
> >for the old X386 (X11v2.0 i think). Now all ALTGR does is set the high
> >bit. Can I configure this somewhere? Or do I have to get some source
> >and fiddle?
>
> As the documentation provided with 2.1 describes, this is exactly
> what has been changed in the default modmap. To get it right I use:
>
> keysym Alt_R = Alt_R Mode_switch
> clear Mod1
> add Mod1 = Alt_L
> add Mod2 = Mode_switch
>

Excuse a dumb question, but I would like to know the syntax of Xmodmap. I
was able to modify Xmodmap.no into a Swedish keyboard, using Latin-1.
However, I am still stumped at the syntax of what comes after the keysym.

For example:

        keycode 3 = 3 numbersign sterling

How does X knows that the keys are none, Shift, AltGr respectively?

This is not only an academic question, since I would like to make Ctrl-8,
whose keysyms are "9 parenright bracketright" to return ^]. I don't like
having to type AltGr-Ctrl-9 for this.

If there is an obvious pointer for the modmap, please tell me. The xmodmap
manpage did not help, nor did xmodmap -grammar.

Sincere thanks,

        /hpa

-- 
INTERNET:  hpa@nwu.edu   TALK:      hpa@casbah.acns.nwu.edu
BITNET:    HPA@NUACC     IBMNET:    16331@IBMX400
HAM RADIO: N9ITP         NeXTMAIL:  hpa@lenny.acns.nwu.edu
while ( 1 ) ; cp /dev/zero /dev/null & end