We have a shell/tty based application that has ~1,000 users. It is running in an environment where X Server is not available. If a user accidently turns on the Scroll Lock, it makes it seem as if the application is frozen because it quits responding to keyboard input. Is there a way to disable the Scroll Lock or remap it to something less intrusive for this use-case?
For a GUI env:
xev on the CLI, then click on the Scroll Lock key to see what its keycode is.
xmodmap -e 'keycode <value>=<action>'
value is the keycode number you get from the
If you want to desable the Scroll Lock, you should leave the
<action> as blank.
or you can map the
<action> to another keycode.
For example, on my Asus EEE 1005P, the Scroll Lock key is map to
keycode 78 so i would issue
xmodmap -e 'keycode 78=' to disable it.
For a non GUI env:
I don't have any experience with a non GUI env, hence i gave you the links and a general way on how to do it.
Disable XON/XOFF (^Q/^S) handling by the tty:
stty stop undef stty start undef