In article <
87vc6ez...@VLAN-3434.student.uu.se>,
Emanuel Berg <
embe...@student.uu.se> wrote:
>I'm not getting it to work. If I read the man page correctly, with the
>`--console' option you can confine the changes to a certain Linux
>VT. But there isn't an example... If I provide (for example)
>"/dev/tty2" it works, but it is not confined. "/dev/vcs[a]2", whatever
>that is, doesn't work (`loadkeys' says can't open).
The man page doesn't explain this properly... the version I have seems to end
abruptly in the middle of a sentence.
All VT's attached to the same keyboard share the same keymap, which is stored
at a much lower layer than the tty, way down at the input layer.
loadkeys will try to find a console device that it can open, but if you're
running it inside a screen session on tty5 and don't have sufficient
privileges to open /dev/console, /dev/tty0, or any other magic devices, you
might have to give it some help by specifying --console /dev/tty5.
It won't enable you to do what you apparently want, which is to have your
keymap automatically change when you switch from tty1 to tty2 with Alt+F2.
If you explain your overall goal, maybe we can find a better way to get it
done.
--
Alan Curry