
08-19-2008, 10:30 PM
|
Re: Third level shift characters do not work (Belgian azerty) In our last episode, ,
the lovely and talented TomB
broadcast on comp.unix.bsd.freebsd.misc:
> Hello all,
> The characters that should be available under third level shift
> (mapped to "Alt Gr" on my keyboard) cannot be typed when running X.
> In a ttyv they work just fine.
> I read through the keyboard and kbdcontrol man pages a bit and came up
> with the following setup:
> In /etc/rc.conf I have included the line
> keymap="be.iso.acc"
> in order to load the be.iso.acc keymap on boot.
> The line that defines e.g. the key with &, 1 and | has the following
> entry in the be.iso.acc.kbd file:
> # scan cntrl alt alt cntrl lock
> # code base shift cntrl shift alt shift cntrl shift state
> # ------------------------------------------------------------------
> 002 '&' '1' nop nop '|' '|' nop nop O
> Looks correct to me.
Yes. But these keymaps are in /usr/share/syscons, right? Well,
that syscons is short for system console. Nothing you do here will
affect the keyboard in X - not even login terminals which may
seem in many respects like a tty, but are not.
> When I check the key events with xev everything looks fine too; the
> "Alt Gr" key is read as ISO 3rd-level shift, and pressing e.g. "Alt Gr"
> and the "&" key is read out as the "|" character.
> I've also added the following in my .login_conf file
> me:\
> :charset=iso-8859-1:\
> :lang=en_US.ISO8859-1:
> to make sure I'm using the iso-8859-1 charset. Without this I cannot
> type characters such as é and ç without using the compose key.
> That's all I can come up with for now. I googled my *ss off, but to no
> further avail.
> Is there anything else I'm missing?
Yes. None of the above has anything to do with X.
X is not really a part of the BSD system. X is completely different
in order that it be more-or-less the same whether it runs on one
of the BSD flavors, Linux, or another sort-of-unix-like system.
You need to be looking at xmodmap.
--
Lars Eighner SAVE BEASTIE! "What do you do when you're debranded?" usenet@larseighner.com http://larseighner.com/
Scott Adams is an optimist. |