Click to See Complete Forum and Search --> : Weird console mapping question


Craig McPherson
04-06-2001, 09:48 PM
I need to do some console mapping so that every key except for a few specific keys do nothing.

I need the up and down arrow keys and enter key to work normally, as well as < and >. All other keys need to either do nothing, or be mapped to something useless like ~.

If at all possible, I'd like this to affect ONLY tty1, and for things to work normally on other tty's. I'll leave a few other keys unaltered so that I can actually switch TTYs. If that can't be done, then I'm fine with that -- I can only have the mapping done at certain runlevels.

Also, if possible, I'd like to map it so that when someone presses the "," key, it's mapped into a "<" (so that the person doesn't have to hold down shift to type a "<"), and the same with "." mapped to ">".

If anybody could point me to some basic keymapping instructions, or give me a few example lines for a mapping script that'd do something like this, it'd be greatly appreciated.

If anybody can guess why I need this done, they will win a cookie.

binaryDigit
04-07-2001, 01:42 AM
command line history and re-directs?

i dunno you got me

bdg1983
04-07-2001, 05:48 AM
Did a search for 'keymapping' at Google (http://www.google.com/linux) and got quite a few hits. May be of some help to you.

What kind of cookie? Yesterday I was offered a three-legged goat. Certainly won't starve at LNO.