1 .\" $NetBSD: gettytab.5,v 1.34 2006/10/13 20:27:42 wiz Exp $
3 .\" Copyright (c) 1983, 1991, 1993
4 .\" The Regents of the University of California. All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. Neither the name of the University nor the names of its contributors
15 .\" may be used to endorse or promote products derived from this software
16 .\" without specific prior written permission.
18 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" from: @(#)gettytab.5 8.4 (Berkeley) 4/19/94
37 .Nd terminal configuration data base
44 is a simplified version of the
47 used to describe terminal lines.
48 The initial terminal login process
52 file each time it starts, allowing simpler
53 reconfiguration of terminal characteristics.
54 Each entry in the data base
55 is used to describe one class of terminals.
59 processes is normally defined by
62 There is a default terminal class,
64 that is used to set global defaults for all other classes.
67 entry is read, then the entry for the class required
68 is used to override particular settings.)
71 entry is also normally read by other programs that present login prompts
74 in order to retrieve the values of the
84 for a description of the file layout.
87 column below lists defaults obtained if there is
88 no entry in the table obtained, nor one in the special
91 .Bl -column Namexx /usr/bin/login Default
92 .It Sy Name Type Default Description
93 .It "ab bool false Auto-baud speed select mechanism for the Micom 600 portselector. Selection is done by looking at how the character `\er' is garbled at 300, 1200, 4800, and 9600 baud."
94 .It "al str NULL user to auto-login instead of prompting"
95 .It "ap bool false terminal uses any parity"
96 .It "bk str 0377 alternative end of line character (input break)"
97 .It "b2 str 0377 alternative end of line character (input break)"
98 .It "c0 num unused tty control flags to write messages"
99 .It "c1 num unused tty control flags to read login name"
100 .It "c2 num unused tty control flags to leave terminal as"
101 .It "ce bool false use crt erase algorithm"
102 .It "ck bool false use crt kill algorithm"
103 .It "cl str" Ta Dv NULL Ta
104 .No "screen clear sequence"
105 .It "co bool false console - add"
108 .It "cs bool false clear screen based on terminal type in /etc/ttys"
109 .It "ds str" Ta So Li ^Y Sc Ta
110 .No "delayed suspend character"
111 .It "dx bool false set"
113 .It "ec bool false leave echo"
115 .It "ep bool false terminal uses even parity"
116 .It "er str" Ta So Li ^? Sc Ta
117 .No "erase character"
118 .It "et str" Ta So Li ^D Sc Ta
122 .It "ev str" Ta Dv NULL Ta
123 .No "initial environment"
124 .It "f0 num unused tty mode flags to write messages"
125 .It "f1 num unused tty mode flags to read login name"
126 .It "f2 num unused tty mode flags to leave terminal as"
127 .It "fl str" Ta So Li ^O Sc Ta
128 .No "output flush character"
129 .It "hc bool false do"
131 hangup line on last close
132 .It "he str" Ta Dv NULL Ta
133 .No "hostname editing string"
134 .It "hn str hostname hostname"
135 .It "ht bool false terminal has real tabs"
136 .It "i0 num unused tty input flags to write messages"
137 .It "i1 num unused tty input flags to read login name"
138 .It "i2 num unused tty input flags to leave terminal as"
139 .It "if str NULL display named file before prompt, like /etc/issue"
140 .It "ig bool false ignore garbage characters in login name"
141 .It "im str" Ta Dv NULL Ta
142 .No "initial (banner) message"
143 .It "in str" Ta So Li ^C Sc Ta
144 .No "interrupt character"
145 .It "is num unused input speed"
146 .It "kl str" Ta So Li ^U Sc Ta
148 .It "l0 num unused tty local flags to write messages"
149 .It "l1 num unused tty local flags to read login name"
150 .It "l2 num unused tty local flags to leave terminal as"
151 .It "lc bool false terminal has lower case"
152 .It "lm str login: login prompt"
153 .It "ln str" Ta So Li ^V Sc Ta
154 .No "``literal next'' character"
155 .It "lo str" Ta Pa /usr/bin/login Ta
156 .No "program to exec when name obtained"
157 .It "mb bool false do flow control based on carrier"
158 .It "nl bool false terminal has (or might have) a newline character"
159 .It "nn bool false do not prompt for a login name"
160 .It "np bool false terminal uses no parity (i.e. 8-bit characters)"
161 .It "nx str default next table (for auto speed selection)"
162 .It "o0 num unused tty output flags to write messages"
163 .It "o1 num unused tty output flags to read login name"
164 .It "o2 num unused tty output flags to leave terminal as"
165 .It "op bool false terminal uses odd parity"
166 .It "os num unused output speed"
167 .It "pc str" Ta So Li \e0 Sc Ta
169 .It "pe bool false use printer (hard copy) erase algorithm"
171 between first prompt and following flush (seconds)
172 .It "pp str unused PPP authentication program"
173 .It "ps bool false line connected to a"
176 .It "qu str" Ta So Li \&^\e Sc Ta
178 .It "rp str" Ta So Li ^R Sc Ta
179 .No "line retype character"
180 .It "rw bool false do"
182 use raw for input, use cbreak
183 .It "sp num unused line speed (input and output)"
184 .It "st str" Ta So Li ^T Sc Ta
185 .No "status character"
186 .It "su str" Ta So Li ^Z Sc Ta
187 .No "suspend character"
188 .It "tc str none table continuation"
189 .It "to num 0 timeout (seconds)"
190 .It "tt str" Ta Dv NULL Ta
191 .No "terminal type (for environment)"
192 .It "ub bool false do unbuffered output (of prompts etc)"
193 .It "we str" Ta So Li ^W Sc Ta
194 .No "word erase character"
195 .It "xc bool false do"
197 echo control chars as
199 .It "xf str" Ta So Li ^S Sc Ta Dv XOFF
200 (stop output) character
201 .It "xn str" Ta So Li ^Q Sc Ta Dv XON
202 (start output) character
205 The following capabilities are no longer supported by
207 .Bl -column Namexx /usr/bin/login Default
208 .It "bd num 0 backspace delay"
209 .It "cb bool false use crt backspace mode"
210 .It "cd num 0 carriage-return delay"
211 .It "fd num 0 form-feed (vertical motion) delay"
212 .It "nd num 0 newline (line-feed) delay"
213 .It "uc bool false terminal is known upper case only"
216 If no line speed is specified, speed will not be altered
217 from that which prevails when getty is entered.
218 Specifying an input or output speed will override
219 line speed for stated direction only.
221 Terminal modes to be used for the output of the message,
222 for input of the login name,
223 and to leave the terminal set as upon completion,
224 are derived from the boolean flags specified.
225 If the derivation should prove inadequate,
226 any (or all) of these three may be overridden
241 numeric specifications, which can be used to specify
242 (usually in octal, with a leading '0')
243 the exact values of the flags.
244 These flags correspond to the termios
250 fields, respectively.
251 Each these sets must be completely specified to be effective.
257 are excepted for backwards compatibility with a previous incarnation of
259 In these flags the bottom 16 bits of the (32 bits) value contain the sgttyb
261 field, while the top 16 bits represent the local mode word.
265 receive a null character
266 (presumed to indicate a line break)
267 it will restart using the table indicated by the
270 If there is none, it will re-use its original table.
272 Delays are specified in milliseconds, the nearest possible
273 delay available in the tty driver will be used.
274 Should greater certainty be desired, delays
275 with values 0, 1, 2, and 3 are interpreted as
276 choosing that particular delay algorithm from the driver.
280 screen clear string may be preceded by a (decimal) number
281 of milliseconds of delay required (a la termcap).
282 This delay is simulated by repeated use of the pad character
285 The initial message, and login message,
289 may include any of the following character sequences, which expand to
290 information about the environment in which
294 .Bl -tag -width \&%xxx -compact
298 The hostname of the machine, which is normally obtained from the
301 but may also be overridden by the
304 In either case it may be edited with the
309 string causes one character from the real hostname to
310 be copied to the final hostname.
313 string causes the next character of the real hostname
316 is neither '@' nor '#' is copied into the final hostname.
317 Surplus '@' and '#' characters are ignored.
320 .It "\&%m, \&%r, \&%s, \&%v"
321 The type of machine, release of the operating system, name of the
322 operating system, and version of the kernel, respectively, as
331 When getty execs the login process, given
335 .Dq Pa /usr/bin/login ) ,
337 the environment to include the terminal type, as indicated
340 string (if it exists).
343 string, can be used to enter additional data into
345 It is a list of comma separated strings, each of which
346 will presumably be of the form
349 If a non-zero timeout is specified, with
351 then getty will exit within the indicated
352 number of seconds, either having
353 received a login name and passed control
356 or having received an alarm signal, and exited.
357 This may be useful to hangup dial in lines.
361 is even parity unless
369 may be specified with
371 to allow any parity on input, but generate odd parity output.
372 Note: this only applies while getty is being run,
373 terminal driver limitations prevent a more complete
376 does not check parity of input characters in
382 string is specified and a Point to Point Protocol
384 link bringup sequence is recognized,
386 will invoke the program referenced by the
390 This can be used to handle incoming
405 file format appeared in
408 The special characters (erase, kill, etc.) are reset to system defaults
413 cases, '#' or '^H' typed in a login name will be treated as
414 an erase character, and '@' will be treated as a kill character.
416 The delay stuff is a real crock.
417 Apart from its general lack of flexibility, some
418 of the delay algorithms are not implemented.
419 The terminal driver should support sane delay settings.
423 capability is stupid.
427 format is horrid, something more rational should