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