Suspend and resume output in terminal

03 March 2005   6 comments   Linux

http://acs.ucsd.edu/info/stty.sunos.php

Mind That Age!

This blog post is 13 years old! Most likely, its content is outdated. Especially if it's technical.

To some people it's obvious but I just learnt this now. It's bugged me several times where I've accidently pressed Ctrl-S and the terminal freezes. I had no idea what to do so I had to close the window with Alt-F4. This is extra annoying if you have a ssh session open.

What Ctrl-S does it that it freezes the output on the terminal. Ctrl-Q resumes it again. I can't think of a real usage for me for this but it's good to know if you accidently "freeze" your terminal.

Comments

Anonymous

I use this many times every day. When you run a big task that dumps lots of lines (at varying speeds), and you want to read or highlight some text in the output, hit ctrl-s to freeze the console before reading the text. You can still scroll around in the terminal's buffer.

Anonymous

or you could pipe the output into 'less'.
Ctrl-S is useless on modern machines and serves only to frustrate and annoy.

Anonymous

pressing scrollock in most terminals should have the same effect

Anonymous

Thanks for the useful inputs.

Anonymous

You just saved my frozen session. Thanks.

Anonymous

Thank you - this has been bothering me forever.

Your email will never ever be published


Related posts

Previous:
Encrypted files in Emacs 01 March 2005
Next:
Good usage of drop-downs 05 March 2005
Related by Keyword:
Fish - most important Python package since distutils 07 May 2010
Guake, not Yakuake or Yeahconsole 23 January 2010
Related by Text:
jQuery and Highslide JS 08 January 2008
I'm back! Peterbe.com has been renewed 05 June 2005
Anti-McCain propaganda videos 12 August 2008
Ever wondered how much $87 Billion is? 04 November 2003
Guake, not Yakuake or Yeahconsole 23 January 2010