85

Today I needed the scroll lock key.

I was running a super long test suite, one which puts a green dot on the screen every 500ms, so you can't scroll up. I needed to view some output of an earlier command... in other words, I needed to lock the automatic scrolling of the terminal.

That is what the scroll lock key was made for.

A momentous occasion.

Then I found out that a while ago, I used the macro function of my keyboard to rebind the that key... to close the current terminal window. 😡

Comments
  • 42
    For the curious: ctrl-s (lock) & ctrl-q (unlock) work much better in most terminals.

    That's also the reason the Nano editor does some angry mumbling at you when you instinctively press ctrl-s to save a file.
  • 2
  • 3
    😟 oh noooo
  • 3
  • 3
    ctrl-s/ctrl-q

    and you can of course always use "script" to store the output of your command for further investigation

    $ script

    $ your command

    $ exit

    or simply

    script -c 'your command'
  • 0
    Lots of dots, don't care for them, so > /dev/null? Or use pv?
  • 2
    Enter "screen -dmS unitTesting /path/to/command > ~/unitTestOutput" :)
Add Comment