Article Title: how to restore a linux terminal to normal when it becomes messy. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
What should I do if the stty command is confusing or worse? What should I do if I use a program to make the terminal settings completely messy? To return to "reality", try the following command:
Stty sane
If the keys become messy, try to enclose the commands with CTRL + j. in the order of CTRL + j, press CTRL first and then enter j.
<Ctrl + j> ctty sane <ctrl + j> 〉
This command does not return to the previous settings, but can remove some strange settings. However, what settings really depend on the system in use will at least allow you to enter characters and see the results. From here on, you can set some key combinations as your favorite method.