Turn on or off ScrollLock leds
From Linux Shell Scripting Tutorial - A Beginner's handbook
To turn on ScrollLock, use the setleds command as follows:
setleds -D +scroll
To turn off ScrollLock, enter:
setleds -D -scroll
- -D : Change both the VT flags and their default settings.
- +scroll : Clear ScrollLock.
- -scroll : Set ScrollLock.
Note: At present, pressing the ScrollLock key (or ^S/^Q) stops/starts console output.