Commit | Line | Data |
---|---|---|
b0a04a8a EA |
1 | .TH TSET UCB 3/1/79 UCB |
2 | .SH NAME | |
3 | tset \- set terminal modes | |
4 | .SH SYNOPSIS | |
5 | .B tset | |
6 | [ | |
7 | .B \- | |
8 | ] [ | |
9 | .B \-r | |
10 | ] [ | |
11 | .B \-e | |
12 | ] [ | |
13 | .B \-E | |
14 | ] [ | |
15 | .B \-k | |
16 | ] [ | |
17 | .B \-d | |
18 | .I type | |
19 | ] [ | |
20 | .B \-p | |
21 | .I type | |
22 | ] [ | |
23 | .B \-b | |
24 | .I type | |
25 | ] [ | |
26 | .B \-h | |
27 | ] [ | |
28 | .I type | |
29 | ] | |
30 | .SH DESCRIPTION | |
31 | .I Tset | |
32 | causes terminal dependent processing such as setting | |
33 | erase and kill characters, setting or resetting delays, | |
34 | and the like. | |
35 | It is driven by the | |
36 | .I /etc/ttytype | |
37 | and | |
38 | .I /etc/termcap | |
39 | files. | |
40 | .PP | |
41 | The type of terminal is specified by the | |
42 | .I type | |
43 | argument. | |
44 | The type may be any type given in | |
45 | .I /etc/termcap. | |
46 | If | |
47 | .I type | |
48 | is not specified, | |
49 | the terminal type is read from | |
50 | the environment | |
51 | unless some of the | |
52 | .B \-h, | |
53 | .B \-d, | |
54 | .B \-b, | |
55 | or | |
56 | .B \-p | |
57 | flags are set. | |
58 | In this case | |
59 | the type is read from | |
60 | .I /etc/ttytype | |
61 | (the terminal code to terminal type database). | |
62 | The terminal id is specified by a | |
63 | .IR ttyn (3) | |
64 | call on the diagnostic output. | |
65 | .PP | |
66 | If the type turns out to be a dialup and the | |
67 | .B \-d | |
68 | flag is specified, | |
69 | the terminal type is taken to be the named type. | |
70 | Similarly, | |
71 | if the type turns out to be a plugboard | |
72 | and the | |
73 | .B \-p | |
74 | flag is specified, | |
75 | the terminal type assumed is taken to be | |
76 | .I type . | |
77 | The same applies the the | |
78 | .B \-b | |
79 | flag on a bussiplexer port. | |
80 | .PP | |
81 | On terminals that can backspace but not overstrike | |
82 | (such as a \s-2CRT\s0) | |
83 | the erase character is changed to a Control-H | |
84 | (backspace). | |
85 | The | |
86 | .B \-e | |
87 | flag sets the erase character to be the named character | |
88 | .I c | |
89 | on all terminals, | |
90 | so to override this option one can say | |
91 | .BR \-e #. | |
92 | The default for | |
93 | .I c | |
94 | is Control-H. | |
95 | The | |
96 | .B \-k | |
97 | option works similarly, | |
98 | with | |
99 | .I c | |
100 | defaulting to Control-X. | |
101 | No kill processing is done if | |
102 | .B \-k | |
103 | is not specified. | |
104 | .PP | |
105 | The | |
106 | .B \- | |
107 | option prints the terminal type | |
108 | on the standard output. | |
109 | .PP | |
110 | The | |
111 | .B \-r | |
112 | option prints the terminal type | |
113 | on the diagnostic output. | |
114 | .PP | |
115 | .I Tset | |
116 | is most useful when included in the | |
117 | .B \&.login | |
118 | file executed automatically at login, | |
119 | with | |
120 | .B \-d | |
121 | used to specify the terminal type you most frequently dial in on. | |
122 | .SH EXAMPLE | |
123 | tset -dti733 -e -k! | |
124 | .br | |
125 | .if \n(V7 setenv TERM `tset -dadm3a - -e# -r` | |
126 | .br | |
127 | tset gt42 | |
128 | .SH FILES | |
129 | .DT | |
130 | /etc/ttytype Terminal id to type map database | |
131 | .br | |
132 | /etc/termcap Terminal capability database | |
133 | .SH SEE\ ALSO | |
134 | setenv (in csh (UCB)) | |
135 | .SH AUTHOR | |
136 | Eric P. Allman |