{"id":833,"date":"2017-03-18T18:17:10","date_gmt":"2017-03-18T12:47:10","guid":{"rendered":"https:\/\/www.wikitechy.com\/technology\/?p=833"},"modified":"2017-03-29T13:24:58","modified_gmt":"2017-03-29T07:54:58","slug":"unfreeze-accidentally-pressing-ctrl-s-terminal","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/technology\/unfreeze-accidentally-pressing-ctrl-s-terminal\/","title":{"rendered":"How to unfreeze after accidentally pressing Ctrl-S in a terminal"},"content":{"rendered":"<ul>\n<li>CTRL+S\u00a0 essentially\u00a0 does XOFF, which means the terminal will accept key strokes but won&#8217;t show the output of anything.<\/li>\n<li>It will act as if your terminal is dead when it&#8217;s certainly just waiting to be turned back on.<\/li>\n<li>CTRL+Q<b>\u00a0<\/b>to turn flow-control on (XON).<\/li>\n<li>If you pressed a whole bunch of keys before pressing CTRL+Q,\u00a0 see the output from those keystrokes<\/li>\n<\/ul>\n[pastacode lang=&#8221;bash&#8221; manual=&#8221;Ctrl-s%3A%20lock%20the%20SSH%20terminal.%0A%0ACtrl-q%3A%20unlock%20the%20SSH%20terminal..%0A&#8221; message=&#8221;bash code&#8221; highlight=&#8221;&#8221; provider=&#8221;manual&#8221;\/]\n<ul>\n<li><b>Ctrl-S<\/b> is scroll-lock on, and <b>Ctrl-Q<\/b> is scroll lock off. This works in a lot of places on a lot of operating systems.<\/li>\n<li>Try this when booting or shutting down at a text screen.<\/li>\n<li>Chances are <b>Ctrl-S<\/b> will stop the scrolling messages. When done, press <b>Ctrl-Q<\/b> to continue.<\/li>\n<li>Ctrl-s and Ctrl-q are standard handshake protocols also refered to XOFF and XON.<\/li>\n<li>These are software handshake characters and there are also hardware handshake protocols using CTR\/RTS lines.<\/li>\n<li>These protocols were used for modems and printers which were slower than the computer<\/li>\n<li>Pressing Ctrl-s inside vi editor or in Linux shell freezes the shell as it locks the terminal output.<\/li>\n<li>You\u00a0 need to press Ctrl-q to resume the terminal output.<\/li>\n<\/ul>\n[ad type=&#8221;banner&#8221;]\n","protected":false},"excerpt":{"rendered":"<p>CTRL+S\u00a0 essentially\u00a0 does XOFF, which means the terminal will accept key strokes but won&#8217;t show the output of anything. It will act as if your terminal is dead when it&#8217;s certainly just waiting to be turned back on. CTRL+Q\u00a0to turn flow-control on (XON). If you pressed a whole bunch of keys before pressing CTRL+Q,\u00a0 see [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1699,1331],"tags":[1541,1560,1558,1557,1543,1538,1539,1549,1551,1552,1546,1554,1545,1553,1559,1548,1547,1550,1555,1556,1544,1542,1540],"class_list":["post-833","post","type-post","status-publish","format-standard","hentry","category-linux","category-unix","tag-a-terminal-that-is-always-scrollable-or-forever-like-less","tag-ctrl-s-bash","tag-ctrl-s-shortcut-key","tag-ctrl-s-ctrl-q","tag-how-to-get-out-from-the-command-iostat-on-unix","tag-how-to-navigate-within-bashs-reverse-search","tag-how-to-permanently-disable-ctrl-s-in-terminal","tag-how-to-unlock-a-locked-ssh-terminal-accidentally-by-ctrl-s-on-linux","tag-inux-vim-crashing-when-pressing-ctrl-s-in-terminal","tag-linux-the-gnu-screen-is-unresponsive","tag-linux-vim-crashing-when-pressing-ctrl-s-in-terminal","tag-putty-frozen-terminal","tag-recovering-from-ctrls-in-putty","tag-seems-blocked","tag-tmux-pane-frozen","tag-unix-command-line-ctrl-s-in-linux-shell","tag-unlocking-your-ssh-session-after-pressing-ctrls","tag-vim-crashing-when-pressing-ctrl-s-in-terminal","tag-vim-frozen-ctrl-s","tag-what-does-ctrl-s-mean","tag-what-is-making-my-cursor-randomly-disappear-when-using-gnome-teminal","tag-what-is-the-point-of-ctrl-s","tag-whats-the-difference-between-the-s-and-z-control-characters-inside-a-terminal"],"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts\/833","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/comments?post=833"}],"version-history":[{"count":0,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts\/833\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/media?parent=833"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/categories?post=833"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/tags?post=833"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}