When running X I use a .xmodmaprc to remap certain keys thusly:
! Make it so that both Caps Lock and Escape do Escape
clear Lock
keysym Caps_Lock = Escape
! Remap the menu key as Compose
keysym Menu = Multi_key
How can I accomplish the same things on the console?
update
In addition to the partial solution given in my answer, I've learned that the console maps CTRL-.
to Compose. So I may be able to get used to that. Setting up the Menu key as Compose is not so easily done, as there are a ton of nul-assigned keycodes and no obvious contender for an alternate name for Menu.
I've also realized that the compose bindings themselves are much more limited than what I'm used to under X, and that most of the special characters I use frequently are not there. Perhaps there is a utility that will translate X-syntax compose bindings into something that loadkeys
can read?
loadkeys
. I think nowadays you can get the Linux console to read the X configuration, but I don't know how this works. – Gilles 'SO- stop being evil' Feb 19 '11 at 14:13