Main index | Section 1 | 日本語 | Options |
If the terminal type was not specified on the command-line, the
Once the termcap entry is retrieved, the window size, backspace, interrupt and line kill characters (among many other things) are set and the terminal and tab initialization strings are sent to the standard error output. Finally, if the erase, interrupt and line kill characters have changed, or are not set to their default values, their values are displayed to the standard error output.
When invoked as reset, tset sets cooked and echo modes, turns off cbreak and raw modes, turns on newline translation and resets any unset special characters to their default values before doing the terminal initialization described above. This is useful after a program dies leaving a terminal in an abnormal state. Note, you may have to type "<LF>reset<LF>" (the line-feed character is normally control-J) to get the terminal to work, as carriage-return may no longer work in the abnormal state. Also, the terminal will often not echo the command.
The options are as follows:
- | The terminal type is displayed to the standard output, and the terminal is not initialized in any way. |
| |
Set the erase character to ch. | |
| |
Do not send the terminal or tab initialization strings to the terminal. | |
| |
Set the interrupt character to ch. | |
| |
Set the line kill character to ch. | |
| |
Specify a mapping from a port type to a terminal. See below for more information. | |
| |
Do not display any values for the erase, interrupt and line kill characters. | |
| |
Print the terminal type to the standard error output. | |
| |
Print the terminal type and the termcap entry to the standard output. See the section below on setting the environment for details. | |
| |
Print the sequence of shell commands to initialize the environment variables TERM and TERMCAP to the standard output. See the section below on setting the environment for details. | |
The arguments for the
When the
When the
eval tset -s options ...
To demonstrate a simple use of the
set noglob set term=(`tset -S options ...`) setenv TERM $term[1] setenv TERMCAP "$term[2]" unset term unset noglob
The argument to the
If the terminal type is not specified on the command line, the
For example, consider the following mapping: "dialup>9600:vt100". The port type is "dialup", the operator is ">", the baud rate specification is "9600", and the terminal type is "vt100". The result of this mapping is to specify that if the terminal type is "dialup", and the baud rate is greater than 9600 baud, a terminal type of "vt100" will be used.
If no port type is specified, the terminal type will match any port type, for example, "-m dialup:vt100 -m :?xterm" will cause any dialup port, regardless of baud rate, to match the terminal type "vt100", and any non-dialup port type to match the terminal type "?xterm". Note, because of the leading question mark, the user will be queried on a default port as to whether they are actually using an xterm terminal.
No whitespace characters are permitted in the
/etc/ttys | system port name to terminal type mapping database |
/usr/share/misc/termcap | |
terminal capability database | |
Executing
tset
as
reset
no longer implies the
Finally, the tset implementation has been completely redone (as part of the addition to the system of a IEEE Std 1003.1-88 ("POSIX.1") compliant terminal interface) and will no longer compile on systems with older terminal interfaces.
TSET (1) | June 6, 2015 |
Main index | Section 1 | 日本語 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | On two occasions I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question. | ” |
— Charles Babbage |