new copyright notice
[unix-history] / usr / src / libexec / getty / gettytab.5
CommitLineData
853a5afb
KM
1.\" Copyright (c) 1983 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
d317681e 5.\" @(#)gettytab.5 6.3 (Berkeley) %G%
853a5afb 6.\"
c523bb4a 7.TH GETTYTAB 5 ""
853a5afb
KM
8.UC 5
9.SH NAME
10gettytab \- terminal configuration data base
11.SH SYNOPSIS
12/etc/gettytab
13.SH DESCRIPTION
14.I Gettytab
15is a simplified version of the
16.IR termcap (5)
17data base
18used to describe terminal lines.
19The initial terminal login process
20.IR getty (8)
21accesses the
22.I gettytab
23file each time it starts, allowing simpler
24reconfiguration of terminal characteristics.
25Each entry in the data base
26is used to describe one class of terminals.
27.PP
28There is a default terminal class,
29.IR default ,
30that is used to set global defaults for all other classes.
31(That is, the
32.I default
33entry is read, then the entry for the class required
34is used to override particular settings.)
35.SH CAPABILITIES
36Refer to
37.IR termcap (5)
38for a description of the file layout.
39The
40.I default
41column below lists defaults obtained if there is
42no entry in the table obtained, nor one in the special
43.I default
44table.
45.nf
46
47.ta \w'k0-k9 'u +\w'Type 'u +\w'``/bin/login" 'u
48\fBName Type Default Description\fR
49ap bool false terminal uses any parity
50bd num 0 backspace delay
51bk str 0377 alternate end of line character (input break)
52cb bool false use crt backspace mode
53cd num 0 carriage-return delay
54ce bool false use crt erase algorithm
55ck bool false use crt kill algorithm
56cl str NULL screen clear sequence
57co bool false console - add \\n after login prompt
58ds str ^Y delayed suspend character
60a81354 59dx bool false set DECCTLQ
853a5afb
KM
60ec bool false leave echo \s-2OFF\s0
61ep bool false terminal uses even parity
62er str ^? erase character
63et str ^D end of text (\s-2EOF\s0) character
64ev str NULL initial enviroment
65f0 num unused tty mode flags to write messages
66f1 num unused tty mode flags to read login name
67f2 num unused tty mode flags to leave terminal as
68fd num 0 form-feed (vertical motion) delay
69fl str ^O output flush character
70hc bool false do \s-2NOT\s0 hangup line on last close
71he str NULL hostname editing string
72hn str hostname hostname
73ht bool false terminal has real tabs
74ig bool false ignore garbage characters in login name
75im str NULL initial (banner) message
76in str ^C interrupt character
77is num unused input speed
78kl str ^U kill character
79lc bool false terminal has lower case
80lm str login: login prompt
81ln str ^V ``literal next'' character
82lo str /bin/login program to exec when name obtained
83nd num 0 newline (line-feed) delay
84nl bool false terminal has (or might have) a newline character
85nx str default next table (for auto speed selection)
86op bool false terminal uses odd parity
87os num unused output speed
88pc str \\0 pad character
89pe bool false use printer (hard copy) erase algorithm
90pf num 0 delay between first prompt and following flush (seconds)
91ps bool false line connected to a MICOM port selector
92qu str ^\\ quit character
93rp str ^R line retype character
94rw bool false do \s-2NOT\s0 use raw for input, use cbreak
95sp num unused line speed (input and output)
96su str ^Z suspend character
97tc str none table continuation
98to num 0 timeout (seconds)
99tt str NULL terminal type (for enviroment)
100ub bool false do unbuffered output (of prompts etc)
101uc bool false terminal is known upper case only
102we str ^W word erase character
103xc bool false do \s-2NOT\s0 echo control chars as ^X
104xf str ^S XOFF (stop output) character
105xn str ^Q XON (start output) character
106.br
107.fi
108.PP
109If no line speed is specified, speed will not be altered
110from that which prevails when getty is entered.
111Specifying an input or output speed will override
112line speed for stated direction only.
113.PP
114Terminal modes to be used for the output of the message,
115for input of the login name,
116and to leave the terminal set as upon completion,
117are derived from the boolean flags specified.
118If the derivation should prove inadequate,
119any (or all) of these three may be overriden
120with one of the
121.BR f0 ,
122.BR f1 ", or"
123.B f2
124numeric specifications, which can be used to specify
125(usually in octal, with a leading '0')
126the exact values of the flags.
127Local (new tty) flags are set in the top 16 bits
128of this (32 bit) value.
129.PP
130Should
131.I getty
132receive a null character
133(presumed to indicate a line break)
134it will restart using the table indicated by the
135.B nx
136entry. If there is none, it will re-use its original table.
137.PP
138Delays are specified in milliseconds, the nearest possible
139delay available in the tty driver will be used.
140Should greater certainty be desired, delays
141with values 0, 1, 2, and 3 are interpreted as
142choosing that particular delay algorithm from the driver.
143.PP
144The
145.B cl
146screen clear string may be preceded by a (decimal) number
147of milliseconds of delay required (a la termcap).
148This delay is simulated by repeated use of the pad character
149.BR pc .
150.PP
151The initial message, and login message,
152.B im
153and
154.B lm
c523bb4a
KM
155may include the character sequence \fB%h\fP or \fB%t\fP to obtain
156the hostname or tty name respectively.
157(\fB%%\fP obtains a single '%' character.)
853a5afb
KM
158The hostname is normally obtained from the system,
159but may be set by the
160.B hn
161table entry.
162In either case it may be edited with
163.BR he .
164The
165.B he
166string is a sequence of characters, each character that
167is neither '@' nor '#' is copied into the final hostname.
168A '@' in the
169.B he
170string, causes one character from the real hostname to
171be copied to the final hostname.
172A '#' in the
173.B he
174string, causes the next character of the real hostname
175to be skipped.
176Surplus '@' and '#' characters are ignored.
177.PP
178When getty execs the login process, given
179in the
180.B lo
181string (usually "/bin/login"), it will have set
182the enviroment to include the terminal type, as indicated
183by the
184.B tt
185string (if it exists).
186The
187.B ev
188string, can be used to enter additional data into
189the environment.
190It is a list of comma separated strings, each of which
191will presumably be of the form
192.IR name=value .
193.PP
194If a non-zero timeout is specified, with
195.BR to ,
196then getty will exit within the indicated
197number of seconds, either having
198received a login name and passed control
199to
200.IR login ,
201or having received an alarm signal, and exited.
202This may be useful to hangup dial in lines.
203.PP
204Output from
205.I getty
206is even parity unless
207.B op
208is specified.
209.B Op
210may be specified with
211.B ap
212to allow any parity on input, but generate odd parity output.
213Note: this only applies while getty is being run,
214terminal driver limitations prevent a more complete
215implementation.
216.I Getty
217does not check parity of input characters in
218.I RAW
219mode.
220.SH "SEE ALSO"
d317681e 221login(1),
853a5afb
KM
222termcap(5),
223getty(8).
224.SH BUGS
d317681e
MK
225The special characters (erase, kill, etc.) are reset to system defaults
226by
227.IR login (1).
853a5afb
KM
228In
229.B all
230cases, '#' or '^H' typed in a login name will be treated as
231an erase character, and '@' will be treated as a kill character.
232.PP
233The delay stuff is a real crock.
234Apart form its general lack of flexibility, some
235of the delay algorithms are not implemented.
236The terminal driver should support sane delay settings.
237.PP
853a5afb
KM
238The
239.B he
240capability is stupid.
241.PP
242.I Termcap
243format is horrid, something more rational should
244have been chosen.