Use the reset command of linux to set the status of the terminal
This article mainly introduces the use of linux reset command to set the status of the terminal, the article is very detailed, has a certain reference value, interested friends must read it!
The Linux reset command is actually the same command as tset, and its purpose is to set the state of the terminal. In general, this command automatically determines the current terminal type from the environment variable, command line, or other configuration file. If the specified type is'?' If so, the program will ask the user to enter the type of terminal.
Because this program will set the terminal back to its original state, in addition to being used in login, when the system terminal enters some strange state because of the abnormal execution of the program, you can also use it to reset the terminal o for example, accidentally enter the binary file into the terminal with cat instructions, there will often be terminals that no longer respond to keyboard input, or respond to questions about strange characters. At this point, you can use reset to restore the terminal to its original state.
Syntax format: reset [parameters]
Common parameters:
-- help online help-- vesion displays version information-- p displays the terminal category on the screen without setting the action. This command can be used to get the type of the current terminal-e ch sets the erase character to ch-i ch, the interrupt character to ch-k ch, the character to delete a line to ch-l, if you do not use the option-Q The current values of erase, interrupt, and delete characters are still sent to the screen-Q do not display the values of erase, interrupt and delete characters on the screen-r print the terminal category on the screen-s send the commands for setting TERM to the terminal in the form of a string, usually used in .login or .profile
Reference example
Let the user enter a terminal type and set the terminal to the default state of that type:
[root@linuxcool ~] # reset?
Set the erase character to control-h:
[root@linuxcool] # reset-e ^ B
Display the string for the setting on the screen:
[root@linuxcool ~] # reset-s is all about setting the status of the terminal using linux's reset command. Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!