Linux under Ctrl+s suspended animation recovery __linux

Source: Internet
Author: User
Tags control characters

When using SECURECRT, the problem of the screen suspended animation

When using SECURECRT, the occasional screen of suspended animation, can not enter and so on.

Later found that, as long as the data ctrl+s, will be suspended animation, input ctrl+q can be recovered.

Ctrl+s is an ancient shell control key, then enter the ctrl+q can be restored.
When your use TERMINAL/PUTTY/SECURECRT, you can mistakenly type ctrl-s. It makes terminal freeze. It is because ctrl-s is the signal to terminals. To resume the terminal, you should push ctrl-q.

This isn't very convenient solution. We use Ctrl-s a lot and especially for EMACS users. To prevent this, you can add this line in your login script (e.g. BASHRC)

Stty Stop undef
You can confirm this setting using this command.

Stty-a
The Stop section should is undef.

As a well-known SSH client, SECURECRT is often used to log on to remote servers. Edit the text above, especially with VI to open two text, and need to switch, it is very easy to appear card dead phenomenon, can not accept any keyboard input. is very depressed. Every time I had this problem, I had to turn that session off and reopen one. This time again meets, is in cannot endure, tries to solve.

Careful observation will find that under the VI switch text "ctrl+w+w", it is easy to input into the "ctrl+s." Just take a session to try to find out, sure enough is ctrl+s in mischief. Just type this and it will get stuck. Search for a moment, and found that there is a reason for it:

Ctrl-s and Ctrl-q are called Flow-control characters. They represent a antiquated way of stopping and restarting the flow of output from one device to another (e.g. Computer to your terminal) This is useful when the speed of such of output is low. They are rather obsolete in this days of high-speed networks. In fact, under the latter conditions, ctrl-s and ctrl-q are basically a nuisance. The only thing your really need to know about them is this if your screen output becomes "stuck," then your may have hit CTR L-s by accident. Type ctrl-q to restart the output; Any keys your may have hit in between'll then take effect.
Ctrl+s is an ancient shell control key that can be restored in the input ctrl+q

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.