Today, this paper solves a small problem of TTY character recognition on UG machine.
Symptoms
After logging into terminal, the default shell is CSH, and pressing the <backspace> key after the entire line is gone, prompting the next command directly.
Cause troubleshooting
Type ' stty-a ' to find that the inter signal corresponding to the keyboard escape sequence is ^?,erase corresponding to the ^h, and the default <backspace> escape sequence is ^? and ^h, so you input <backspace> will send an interrupt signal.
Solution Solutions
An order:
Stty Inter ^c
Set the send interrupt signal back to our custom c-c command.
Little Tricks
1. Want to know the escape sequence for each invisible character (such as <backspace>,<delete>,<page down>) under terminal?
Press C-v First, then press the key.
Emacs The following is the first press C-Q, and then press the key.
2. Change the shell that the user uses by default:
Chsh $USER $SHELL
UG Machine TTY Problem solving record