]>
Commit | Line | Data |
---|---|---|
1815bff5 A |
1 | .\" Copyright (c) 1983, 1991, 1993 |
2 | .\" The Regents of the University of California. All rights reserved. | |
3 | .\" | |
4 | .\" Redistribution and use in source and binary forms, with or without | |
5 | .\" modification, are permitted provided that the following conditions | |
6 | .\" are met: | |
7 | .\" 1. Redistributions of source code must retain the above copyright | |
8 | .\" notice, this list of conditions and the following disclaimer. | |
9 | .\" 2. Redistributions in binary form must reproduce the above copyright | |
10 | .\" notice, this list of conditions and the following disclaimer in the | |
11 | .\" documentation and/or other materials provided with the distribution. | |
12 | .\" 3. All advertising materials mentioning features or use of this software | |
13 | .\" must display the following acknowledgement: | |
14 | .\" This product includes software developed by the University of | |
15 | .\" California, Berkeley and its contributors. | |
16 | .\" 4. Neither the name of the University nor the names of its contributors | |
17 | .\" may be used to endorse or promote products derived from this software | |
18 | .\" without specific prior written permission. | |
19 | .\" | |
20 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | |
21 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
22 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | |
23 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | |
24 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | |
25 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | |
26 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
27 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | |
28 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |
29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
30 | .\" SUCH DAMAGE. | |
31 | .\" | |
32 | .\" from: @(#)gettytab.5 8.4 (Berkeley) 4/19/94 | |
33 | .\" $Id: gettytab.5,v 1.1.1.1 1999/05/02 04:21:29 wsanchez Exp $ | |
34 | .\" | |
35 | .Dd April 19, 1994 | |
36 | .Dt GETTYTAB 5 | |
37 | .Os BSD 4.2 | |
38 | .Sh NAME | |
39 | .Nm gettytab | |
40 | .Nd terminal configuration data base | |
41 | .Sh SYNOPSIS | |
42 | .Nm gettytab | |
43 | .Sh DESCRIPTION | |
44 | The | |
45 | .Nm gettytab | |
46 | file | |
47 | is a simplified version of the | |
48 | .Xr termcap 5 | |
49 | data base | |
50 | used to describe terminal lines. | |
51 | The initial terminal login process | |
52 | .Xr getty 8 | |
53 | accesses the | |
54 | .Nm gettytab | |
55 | file each time it starts, allowing simpler | |
56 | reconfiguration of terminal characteristics. | |
57 | Each entry in the data base | |
58 | is used to describe one class of terminals. | |
59 | .Pp | |
60 | There is a default terminal class, | |
61 | .Em default , | |
62 | that is used to set global defaults for all other classes. | |
63 | (That is, the | |
64 | .Em default | |
65 | entry is read, then the entry for the class required | |
66 | is used to override particular settings.) | |
67 | .Sh CAPABILITIES | |
68 | Refer to | |
69 | .Xr termcap 5 | |
70 | for a description of the file layout. | |
71 | The | |
72 | .Em default | |
73 | column below lists defaults obtained if there is | |
74 | no entry in the table obtained, nor one in the special | |
75 | .Em default | |
76 | table. | |
77 | .Bl -column Namexx /usr/bin/login Default | |
78 | .It Sy Name Type Default Description | |
79 | .It "ap bool false terminal uses any parity" | |
80 | .It "bk str 0377 alternate end of line character (input break)" | |
81 | .It "c0 num unused tty control flags to write messages" | |
82 | .It "c1 num unused tty control flags to read login name" | |
83 | .It "c2 num unused tty control flags to leave terminal as" | |
84 | .It "ce bool false use crt erase algorithm" | |
85 | .It "ck bool false use crt kill algorithm" | |
86 | .It "cl str" Ta Dv NULL Ta | |
87 | .No "screen clear sequence" | |
88 | .It "co bool false console - add" | |
89 | .Ql \en | |
90 | after login prompt | |
91 | .It "ds str" Ta So Li ^Y Sc Ta | |
92 | .No "delayed suspend character" | |
93 | .It "dx bool false set" | |
94 | .Dv DECCTLQ | |
95 | .It "ec bool false leave echo" | |
96 | .Tn OFF | |
97 | .It "ep bool false terminal uses even parity" | |
98 | .It "er str" Ta So Li ^? Sc Ta | |
99 | .No "erase character" | |
100 | .It "et str" Ta So Li ^D Sc Ta | |
101 | .No "end of text" | |
102 | .Pq Dv EOF | |
103 | character | |
104 | .It "ev str" Ta Dv NULL Ta | |
105 | .No "initial environment" | |
106 | .It "f0 num unused tty mode flags to write messages" | |
107 | .It "f1 num unused tty mode flags to read login name" | |
108 | .It "f2 num unused tty mode flags to leave terminal as" | |
109 | .It "fl str" Ta So Li ^O Sc Ta | |
110 | .No "output flush character" | |
111 | .It "hc bool false do" | |
112 | .Tn NOT | |
113 | hangup line on last close | |
114 | .It "he str" Ta Dv NULL Ta | |
115 | .No "hostname editing string" | |
116 | .It "hn str hostname hostname" | |
117 | .It "ht bool false terminal has real tabs" | |
118 | .It "i0 num unused tty input flags to write messages" | |
119 | .It "i1 num unused tty input flags to read login name" | |
120 | .It "i2 num unused tty input flags to leave terminal as" | |
121 | .It "ig bool false ignore garbage characters in login name" | |
122 | .It "im str" Ta Dv NULL Ta | |
123 | .No "initial (banner) message" | |
124 | .It "in str" Ta So Li ^C Sc Ta | |
125 | .No "interrupt character" | |
126 | .It "is num unused input speed" | |
127 | .It "kl str" Ta So Li ^U Sc Ta | |
128 | .No "kill character" | |
129 | .It "l0 num unused tty local flags to write messages" | |
130 | .It "l1 num unused tty local flags to read login name" | |
131 | .It "l2 num unused tty local flags to leave terminal as" | |
132 | .It "lc bool false terminal has lower case" | |
133 | .It "lm str login: login prompt" | |
134 | .It "ln str" Ta So Li ^V Sc Ta | |
135 | .No "``literal next'' character" | |
136 | .It "lo str" Ta Pa /usr/bin/login Ta | |
137 | .No "program to exec when name obtained" | |
138 | .It "mb bool false do flow control based on carrier" | |
139 | .It "nl bool false terminal has (or might have) a newline character" | |
140 | .It "np bool false terminal uses no parity (i.e. 8-bit characters)" | |
141 | .It "nx str default next table (for auto speed selection)" | |
142 | .It "o0 num unused tty output flags to write messages" | |
143 | .It "o1 num unused tty output flags to read login name" | |
144 | .It "o2 num unused tty output flags to leave terminal as" | |
145 | .It "op bool false terminal uses odd parity" | |
146 | .It "os num unused output speed" | |
147 | .It "pc str" Ta So Li \e0 Sc Ta | |
148 | .No "pad character" | |
149 | .It "pe bool false use printer (hard copy) erase algorithm" | |
150 | .It "pf num 0 delay" | |
151 | between first prompt and following flush (seconds) | |
152 | .It "ps bool false line connected to a" | |
153 | .Tn MICOM | |
154 | port selector | |
155 | .It "qu str" Ta So Li \&^\e Sc Ta | |
156 | .No "quit character" | |
157 | .It "rp str" Ta So Li ^R Sc Ta | |
158 | .No "line retype character" | |
159 | .It "rw bool false do" | |
160 | .Tn NOT | |
161 | use raw for input, use cbreak | |
162 | .It "sp num unused line speed (input and output)" | |
163 | .It "su str" Ta So Li ^Z Sc Ta | |
164 | .No "suspend character" | |
165 | .It "tc str none table continuation" | |
166 | .It "to num 0 timeout (seconds)" | |
167 | .It "tt str" Ta Dv NULL Ta | |
168 | .No "terminal type (for environment)" | |
169 | .It "ub bool false do unbuffered output (of prompts etc)" | |
170 | .It "we str" Ta So Li ^W Sc Ta | |
171 | .No "word erase character" | |
172 | .It "xc bool false do | |
173 | .Tn NOT | |
174 | echo control chars as | |
175 | .Ql ^X | |
176 | .It "xf str" Ta So Li ^S Sc Ta Dv XOFF | |
177 | (stop output) character | |
178 | .It "xn str" Ta So Li ^Q Sc Ta Dv XON | |
179 | (start output) character | |
180 | .El | |
181 | .Pp | |
182 | The following capabilities are no longer supported by getty(8): | |
183 | .Bl -column Namexx /usr/bin/login Default | |
184 | .It "bd num 0 backspace delay" | |
185 | .It "cb bool false use crt backspace mode" | |
186 | .It "cd num 0 carriage-return delay" | |
187 | .It "fd num 0 form-feed (vertical motion) delay" | |
188 | .It "nd num 0 newline (line-feed) delay" | |
189 | .It "uc bool false terminal is known upper case only" | |
190 | .El | |
191 | .Pp | |
192 | If no line speed is specified, speed will not be altered | |
193 | from that which prevails when getty is entered. | |
194 | Specifying an input or output speed will override | |
195 | line speed for stated direction only. | |
196 | .Pp | |
197 | Terminal modes to be used for the output of the message, | |
198 | for input of the login name, | |
199 | and to leave the terminal set as upon completion, | |
200 | are derived from the boolean flags specified. | |
201 | If the derivation should prove inadequate, | |
202 | any (or all) of these three may be overridden | |
203 | with one of the | |
204 | .Em \&c0 , | |
205 | .Em \&c1 , | |
206 | .Em \&c2 , | |
207 | .Em \&i0 , | |
208 | .Em \&i1 , | |
209 | .Em \&i2 , | |
210 | .Em \&l0 , | |
211 | .Em \&l1 , | |
212 | .Em \&l2 , | |
213 | .Em \&o0 , | |
214 | .Em \&o1 , | |
215 | or | |
216 | .Em \&o2 | |
217 | numeric specifications, which can be used to specify | |
218 | (usually in octal, with a leading '0') | |
219 | the exact values of the flags. | |
220 | These flags correspond to the termios | |
221 | .Em c_cflag , | |
222 | .Em c_iflag , | |
223 | .Em c_lflag , | |
224 | and | |
225 | .Em c_oflag | |
226 | fields, respectively. Each these sets must be completely specified to be | |
227 | effective. | |
228 | The | |
229 | .Em \&f0 , | |
230 | .Em \&f1 , | |
231 | and | |
232 | .Em \&f2 | |
233 | are excepted for backwards compatibility with a previous incarnation of | |
234 | the TTY sub-system. In these flags the bottom 16 bits of the (32 bits) | |
235 | value contain the sgttyb | |
236 | .Em sg_flags | |
237 | field, while the top 16 bits represent the local mode word. | |
238 | .Pp | |
239 | Should | |
240 | .Xr getty | |
241 | receive a null character | |
242 | (presumed to indicate a line break) | |
243 | it will restart using the table indicated by the | |
244 | .Em nx | |
245 | entry. If there is none, it will re-use its original table. | |
246 | .Pp | |
247 | Delays are specified in milliseconds, the nearest possible | |
248 | delay available in the tty driver will be used. | |
249 | Should greater certainty be desired, delays | |
250 | with values 0, 1, 2, and 3 are interpreted as | |
251 | choosing that particular delay algorithm from the driver. | |
252 | .Pp | |
253 | The | |
254 | .Em \&cl | |
255 | screen clear string may be preceded by a (decimal) number | |
256 | of milliseconds of delay required (a la termcap). | |
257 | This delay is simulated by repeated use of the pad character | |
258 | .Em \&pc . | |
259 | .Pp | |
260 | The initial message, and login message, | |
261 | .Em \&im | |
262 | and | |
263 | .Em \&lm | |
264 | may include the character sequence | |
265 | .Em \&%h | |
266 | or | |
267 | .Em \&%t | |
268 | to obtain | |
269 | the hostname or tty name respectively. | |
270 | .Pf ( Em %% | |
271 | obtains a single '%' character.) | |
272 | The hostname is normally obtained from the system, | |
273 | but may be set by the | |
274 | .Em \&hn | |
275 | table entry. | |
276 | In either case it may be edited with | |
277 | .Em \&he . | |
278 | The | |
279 | .Em \&he | |
280 | string is a sequence of characters, each character that | |
281 | is neither '@' nor '#' is copied into the final hostname. | |
282 | A '@' in the | |
283 | .Em \&he | |
284 | string, causes one character from the real hostname to | |
285 | be copied to the final hostname. | |
286 | A '#' in the | |
287 | .Em \&he | |
288 | string, causes the next character of the real hostname | |
289 | to be skipped. | |
290 | Surplus '@' and '#' characters are ignored. | |
291 | .Pp | |
292 | When getty execs the login process, given | |
293 | in the | |
294 | .Em \&lo | |
295 | string (usually | |
296 | .Dq Pa /usr/bin/login ) , | |
297 | it will have set | |
298 | the environment to include the terminal type, as indicated | |
299 | by the | |
300 | .Em \&tt | |
301 | string (if it exists). | |
302 | The | |
303 | .Em \&ev | |
304 | string, can be used to enter additional data into | |
305 | the environment. | |
306 | It is a list of comma separated strings, each of which | |
307 | will presumably be of the form | |
308 | .Em name=value . | |
309 | .Pp | |
310 | If a non-zero timeout is specified, with | |
311 | .Em \&to , | |
312 | then getty will exit within the indicated | |
313 | number of seconds, either having | |
314 | received a login name and passed control | |
315 | to | |
316 | .Xr login , | |
317 | or having received an alarm signal, and exited. | |
318 | This may be useful to hangup dial in lines. | |
319 | .Pp | |
320 | Output from | |
321 | .Xr getty | |
322 | is even parity unless | |
323 | .Em \&op | |
324 | or | |
325 | .Em \&np | |
326 | is specified. | |
327 | The | |
328 | .Em \&op | |
329 | string | |
330 | may be specified with | |
331 | .Em \&ap | |
332 | to allow any parity on input, but generate odd parity output. | |
333 | Note: this only applies while getty is being run, | |
334 | terminal driver limitations prevent a more complete | |
335 | implementation. | |
336 | .Xr Getty | |
337 | does not check parity of input characters in | |
338 | .Dv RAW | |
339 | mode. | |
340 | .Sh SEE ALSO | |
341 | .Xr login 1 , | |
342 | .Xr termcap 5 , | |
343 | .Xr getty 8 . | |
344 | .Sh BUGS | |
345 | The special characters (erase, kill, etc.) are reset to system defaults | |
346 | by | |
347 | .Xr login 1 . | |
348 | In | |
349 | .Em all | |
350 | cases, '#' or '^H' typed in a login name will be treated as | |
351 | an erase character, and '@' will be treated as a kill character. | |
352 | .Pp | |
353 | The delay stuff is a real crock. | |
354 | Apart form its general lack of flexibility, some | |
355 | of the delay algorithms are not implemented. | |
356 | The terminal driver should support sane delay settings. | |
357 | .Pp | |
358 | The | |
359 | .Em \&he | |
360 | capability is stupid. | |
361 | .Pp | |
362 | The | |
363 | .Xr termcap | |
364 | format is horrid, something more rational should | |
365 | have been chosen. | |
366 | .Pp | |
367 | This should be converted to use | |
368 | .Xr termios 4 . | |
369 | .Sh HISTORY | |
370 | The | |
371 | .Nm gettytab | |
372 | file format appeared in 4.2BSD. |