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.
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.