How do you unfreeze terminal after Ctrl-S?

How do you unfreeze terminal after Ctrl-S?

So, it is easy to hit Ctrl-S by error, and that will make bash freeze. What Ctrl-S does is to pause flow-control (XOFF), that means that the terminal will accept inputs but will not show the output of anything. To restart flow-control, simply give Ctrl-Q (XON) and you will see all your inputs compare on the screen.

What does Ctrl-S do in Linux terminal?

You can freeze a terminal window on a Linux system by typing Ctrl+S (hold control key and press “s”). Think of the “s” as meaning “start the freeze”. If you continue typing commands after doing this, you won’t see the commands you type or the output you would expect to see.

What is Ctrl S in vi?

In vi, CTRL-S is used freeze the output. It is meant to let you pause a quickly scrolling display.

Why does Vim-Ctrl-S hang the terminal emulator?

I came across a sentence in vimdoc: Note: CTRL-S does not work on all terminals and might block further input, use CTRL-Q to get going again. and using CTRL-S indeed hangs my vim. I was thinking that it was vims fault, since there was no problem when I used C-s / C-x C-s in emacs nox.

Are there any emulators that unhang the terminal?

The terminal emulators I’ve testd are xterm and lxterminal. tty also has this problem. A Ctrl + q unhangs the terminal in all the cases.

When to use Ctrl + Q to unhang a terminal?

A Ctrl + q unhangs the terminal in all the cases. When one end of the data link (in this case the terminal emulator) can’t receive any more data (because the buffer is full or nearing full or the user sends C-s) it will send an “XOFF” to tell the sending end of the data link to pause until the “XON” signal is received.

What is the point of Ctrl-S in Unix?

And this usage survives in Unix because modern terminal emulators are emulating physical terminals (like the vt100) which themselves were (in some ways) emulating teletypes. It’s a control character from the time of the VT100 terminals and similar.