Generally, this command automatically determines the type of the current terminal from the environment variable, command column, or other configuration files. If the specified type is '? ', This program requires the user to enter the terminal type.
Because this program will set the terminal machine back to the original state, in addition to being used in login, when the system terminal enters some strange state due to abnormal program execution, you can also use it to reset the terminal. For example, if you accidentally use cat commands to import binary files to the terminal, some terminals usually do not respond to keyboard input or some strange character problems. In this case, you can use reset to restore the terminal to the original state.
Syntax
Tset [-IQqrs] [-] [-e ch] [-I ch] [-k ch] [-m mapping] [terminal]
Parameter description:
-P Category displays the terminal category on the screen, but does not set the action. This command can be used to obtain the category of the current terminal.
-E ch delimiter: set erase to ch
-I ch delimiter: sets the delimiter to ch.
-K ch keys: Set the characters of the deleted line to ch.
-I recommend that you do not set the operation. If option-Q is not used, the current values of erase, interrupt, and delete characters will still be sent to the screen.
-Q: Do not display the values of erase, interrupt, and delete characters on the screen.
-R branch prints the terminal category on the screen.
-S branch sends the command used to set the TERM to the terminal in the string type, which is usually used in. login or. profile.
Instance
Let the user enter a terminal type and set the terminal to the preset status of this type
# Reset?
Set erase characters to control-h
# Reset-e ^ B
Display the set strings on the screen
# Reset-s
Erase is control-B (^ B ).
Kill is control-U (^ U ).
Interrupt is control-C (^ C ).
TERM = xterm;