Re: Can't type 'I'

Alain Knaff (Alain.Knaff@imag.fr)
Tue, 16 Jan 96 11:21:19 +0100

>Also, sometimes, when I exit 'thot', the keyboard won't
>work anymore the way it used to do.
>I'm working under a linux-box (=>XFree86 3.1.1).
>Thus from time to time I want to change to the console via
><Ctrl>-<Alt>-<Fx> .

The reason for this bug is that thot likes to remap the keyboard when
it starts up. It insists on having Mode_switch on modifier 1. If it
doesn't find this keysym on mod1, it moves whatever was there before
to mod2, and puts Mode_switch on mod1. This ramapping is done in order
to make it easyer for the thot developers to support accented
characters.

Of course, this royally screws up most programs which use the Alt key
which is usually on mod1. Most notably fvwm and the X server itself
suffer from this, Emacs is smart enough to notice what's going on.

After lots of tinkering, I found out that the problems can be avoided
by making sure that Mode_switch is on mod1 to begin with.

I have the following in my xmodmap to do this:

keycode 8 = Mode_switch
clear mod1
add mod1 = Mode_switch
add mod1 = Alt_L
add mod1 = Alt_R

After doing this, thot, fvwm and console switching happily
coexist. Accented characters in thot still work.
CAUTION: this method breaks Lucid emacs. It works with GNU emacs.

Hope this helps,

Alain

-----------------------------------------------------------------------
Email: Alain.Knaff@imag.fr |
Tel.(work): (33) 76 63 48 41 | "Sed timeo danaos et donas ferentes"
Tel.(home): (33) 76 85 23 05 | - Homer -
(répondeur & minicom 3612) |
Fax : (33) 76 54 76 15 |