Linux: Ctrl+s Freeze vim
Ctrl+s → freeze screen.
Ctrl+q → unfreeze screen.
These are ancient keys from 1980s or earlier. They still work in many boot screen. They are used to send a signal to the device to tell it to stop receiving transmission.
Decimal | Oct | Hex | Abbrev | Name | key | Comment |
---|---|---|---|---|---|---|
17 | 021 | 11 | DC1 | device control 1 | Ctrl+q | often used for start transmission XON. |
19 | 023 | 13 | DC3 | device control 3 | Ctrl+s | often used for stop transmission XOFF (X is short for transmission) |
〔see ASCII Characters〕
To turn it off, put this in your bash init file:
stty ixoff -ixon
〔see Bash Init, .bashrc .profile .bash_profile〕
Here's a Ubuntu linux stty default setup.
# stty -a speed 38400 baud; rows 0; columns 0; line = 0; intr = ^C; quit = ^\; erase = <undef>; kill = <undef>; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0; -parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel -iutf8 opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0 isig icanon iexten -echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke
For detail of other terminal control sequence keys, see: Linux: Terminal Control Sequence Keys