version 1.4, 1998/06/15 17:56:09 |
version 1.5, 1998/10/30 00:24:40 |
|
|
.Op Fl m Ar mapping |
.Op Fl m Ar mapping |
.Op Ar terminal |
.Op Ar terminal |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
.Nm Tset |
.Nm tset |
initializes terminals. |
initializes terminals. |
.Nm Tset |
.Nm tset |
first determines the type of terminal that you are using. |
first determines the type of terminal that you are using. |
This determination is done as follows, using the first terminal type found. |
This determination is done as follows, using the first terminal type found: |
.sp |
.sp |
.Bl -bullet -compact -offset indent |
.Bl -bullet -compact -offset indent |
.It |
.It |
|
|
If no termcap entry is found for the type, the user is prompted for another |
If no termcap entry is found for the type, the user is prompted for another |
terminal type. |
terminal type. |
.Pp |
.Pp |
Once the termcap entry is retrieved, the window size, backspace, interrupt |
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 line kill characters (among many other things) are set and the terminal |
and tab initialization strings are sent to the standard error output. |
and tab initialization strings are sent to the standard error output. |
Finally, if the erase, interrupt and line kill characters have changed, |
Finally, if the erase, interrupt and line kill characters have changed, |
|
|
sets cooked and echo modes, turns off cbreak and raw modes, turns on |
sets cooked and echo modes, turns off cbreak and raw modes, turns on |
newline translation and resets any unset special characters to their |
newline translation and resets any unset special characters to their |
default values before doing the terminal initialization described above. |
default values before doing the terminal initialization described above. |
This is useful after a program dies leaving a terminal in a abnormal state. |
This is useful after a program dies leaving a terminal in an abnormal state. |
Note, you may have to type |
Note, you may have to type |
.Dq Li <LF>reset<LF> |
.Dq Li <LF>reset<LF> |
(the line-feed character is normally control-J) to get the terminal |
(the line-feed character is normally control-J) to get the terminal |
|
|
.It Fl |
.It Fl |
The terminal type is displayed to the standard output, and the terminal is |
The terminal type is displayed to the standard output, and the terminal is |
not initialized in any way. |
not initialized in any way. |
.It Fl e |
.It Fl e Ar ch |
Set the erase character to |
Set the erase character to |
.Ar ch . |
.Ar ch . |
.It Fl I |
.It Fl I |
Do not send the terminal or tab initialization strings to the terminal. |
Do not send the terminal or tab initialization strings to the terminal. |
.It Fl i |
.It Fl i Ar ch |
Set the interrupt character to |
Set the interrupt character to |
.Ar ch . |
.Ar ch . |
.It Fl k |
.It Fl k Ar ch |
Set the line kill character to |
Set the line kill character to |
.Ar ch . |
.Ar ch . |
.It Fl m |
.It Fl m Ar mapping |
Specify a mapping from a port type to a terminal. |
Specify a mapping from a port type to a terminal. |
See below for more information. |
See below for more information. |
.It Fl Q |
.It Fl Q |
|
|
to the standard output, separated by a space and without a terminating |
to the standard output, separated by a space and without a terminating |
newline. |
newline. |
This can be assigned to an array by |
This can be assigned to an array by |
.Nm csh |
.Xr csh 1 |
and |
and |
.Nm ksh |
.Xr ksh 1 |
users and then used like any other shell array. |
users and then used like any other shell array. |
.Pp |
.Pp |
When the |
When the |
|
|
shell's environment are written to the standard output. |
shell's environment are written to the standard output. |
If the |
If the |
.Ev SHELL |
.Ev SHELL |
environment variable ends in ``csh'', the commands are for the |
environment variable ends in ``csh'', the commands are for |
.Nm csh , |
.Xr csh 1 , |
otherwise, they are for |
otherwise, they are for |
.Xr sh . |
.Xr sh 1 . |
Note, the |
Note, the |
.Nm csh |
.Xr csh 1 |
commands set and unset the shell variable |
commands set and unset the shell variable |
.Dq noglob , |
.Dq noglob , |
leaving it unset. |
leaving it unset. |
|
|
.Ed |
.Ed |
.Sh TERMINAL TYPE MAPPING |
.Sh TERMINAL TYPE MAPPING |
When the terminal is not hardwired into the system (or the current system |
When the terminal is not hardwired into the system (or the current system |
information is incorrect) the terminal type derived from the |
information is incorrect), the terminal type derived from the |
.Pa /etc/ttys |
.Pa /etc/ttys |
file or the |
file or the |
.Ev TERM |
.Ev TERM |
|
|
The argument to the |
The argument to the |
.Fl m |
.Fl m |
option consists of an optional port type, an optional operator, an optional |
option consists of an optional port type, an optional operator, an optional |
baud rate specification, an optional colon (``:'') character and a terminal |
baud rate specification, an optional colon (``:'') character, and a terminal |
type. |
type. |
The port type is a string (delimited by either the operator or the colon |
The port type is a string (delimited by either the operator or the colon |
character). |
character). |
|
|
.Dq Li \&< |
.Dq Li \&< |
means less than, |
means less than, |
.Dq Li \&@ |
.Dq Li \&@ |
means equal to |
means equal to, |
and |
and |
.Dq Li \&! |
.Dq Li \&! |
inverts the sense of the test. |
inverts the sense of the test. |
|
|
No whitespace characters are permitted in the |
No whitespace characters are permitted in the |
.Fl m |
.Fl m |
option argument. |
option argument. |
Also, to avoid problems with metacharacters, it is suggested that the entire |
Also, to avoid problems with meta-characters, it is suggested that the entire |
.Fl m |
.Fl m |
option argument be placed within single quote characters, and that |
option argument be placed within single quote characters, and that |
.Nm csh |
.Xr csh 1 |
users insert a backslash character (``\e'') before any exclamation |
users insert a backslash character (``\e'') before any exclamation |
marks (``!''). |
marks (``!''). |
.Sh ENVIRONMENT |
.Sh ENVIRONMENT |
|
|
.Fl A , |
.Fl A , |
.Fl E , |
.Fl E , |
.Fl h , |
.Fl h , |
.Fl u |
.Fl u , |
and |
and |
.Fl v |
.Fl v |
options have been deleted from the |
options have been deleted from the |