set DECCTLQ on specifc lines with getty (from muller@nprdc.arpa)
[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.\"
c523bb4a 5.\" @(#)gettytab.5 6.1 (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
59ec bool false leave echo \s-2OFF\s0
60ep bool false terminal uses even parity
61er str ^? erase character
62et str ^D end of text (\s-2EOF\s0) character
63ev str NULL initial enviroment
64f0 num unused tty mode flags to write messages
65f1 num unused tty mode flags to read login name
66f2 num unused tty mode flags to leave terminal as
67fd num 0 form-feed (vertical motion) delay
68fl str ^O output flush character
69hc bool false do \s-2NOT\s0 hangup line on last close
70he str NULL hostname editing string
71hn str hostname hostname
72ht bool false terminal has real tabs
73ig bool false ignore garbage characters in login name
74im str NULL initial (banner) message
75in str ^C interrupt character
76is num unused input speed
77kl str ^U kill character
78lc bool false terminal has lower case
79lm str login: login prompt
80ln str ^V ``literal next'' character
81lo str /bin/login program to exec when name obtained
82nd num 0 newline (line-feed) delay
83nl bool false terminal has (or might have) a newline character
84nx str default next table (for auto speed selection)
85op bool false terminal uses odd parity
86os num unused output speed
87pc str \\0 pad character
88pe bool false use printer (hard copy) erase algorithm
89pf num 0 delay between first prompt and following flush (seconds)
90ps bool false line connected to a MICOM port selector
91qu str ^\\ quit character
92rp str ^R line retype character
93rw bool false do \s-2NOT\s0 use raw for input, use cbreak
94sp num unused line speed (input and output)
95su str ^Z suspend character
96tc str none table continuation
97to num 0 timeout (seconds)
98tt str NULL terminal type (for enviroment)
99ub bool false do unbuffered output (of prompts etc)
100uc bool false terminal is known upper case only
101we str ^W word erase character
102xc bool false do \s-2NOT\s0 echo control chars as ^X
103xf str ^S XOFF (stop output) character
104xn str ^Q XON (start output) character
105.br
106.fi
107.PP
108If no line speed is specified, speed will not be altered
109from that which prevails when getty is entered.
110Specifying an input or output speed will override
111line speed for stated direction only.
112.PP
113Terminal modes to be used for the output of the message,
114for input of the login name,
115and to leave the terminal set as upon completion,
116are derived from the boolean flags specified.
117If the derivation should prove inadequate,
118any (or all) of these three may be overriden
119with one of the
120.BR f0 ,
121.BR f1 ", or"
122.B f2
123numeric specifications, which can be used to specify
124(usually in octal, with a leading '0')
125the exact values of the flags.
126Local (new tty) flags are set in the top 16 bits
127of this (32 bit) value.
128.PP
129Should
130.I getty
131receive a null character
132(presumed to indicate a line break)
133it will restart using the table indicated by the
134.B nx
135entry. If there is none, it will re-use its original table.
136.PP
137Delays are specified in milliseconds, the nearest possible
138delay available in the tty driver will be used.
139Should greater certainty be desired, delays
140with values 0, 1, 2, and 3 are interpreted as
141choosing that particular delay algorithm from the driver.
142.PP
143The
144.B cl
145screen clear string may be preceded by a (decimal) number
146of milliseconds of delay required (a la termcap).
147This delay is simulated by repeated use of the pad character
148.BR pc .
149.PP
150The initial message, and login message,
151.B im
152and
153.B lm
c523bb4a
KM
154may include the character sequence \fB%h\fP or \fB%t\fP to obtain
155the hostname or tty name respectively.
156(\fB%%\fP obtains a single '%' character.)
853a5afb
KM
157The hostname is normally obtained from the system,
158but may be set by the
159.B hn
160table entry.
161In either case it may be edited with
162.BR he .
163The
164.B he
165string is a sequence of characters, each character that
166is neither '@' nor '#' is copied into the final hostname.
167A '@' in the
168.B he
169string, causes one character from the real hostname to
170be copied to the final hostname.
171A '#' in the
172.B he
173string, causes the next character of the real hostname
174to be skipped.
175Surplus '@' and '#' characters are ignored.
176.PP
177When getty execs the login process, given
178in the
179.B lo
180string (usually "/bin/login"), it will have set
181the enviroment to include the terminal type, as indicated
182by the
183.B tt
184string (if it exists).
185The
186.B ev
187string, can be used to enter additional data into
188the environment.
189It is a list of comma separated strings, each of which
190will presumably be of the form
191.IR name=value .
192.PP
193If a non-zero timeout is specified, with
194.BR to ,
195then getty will exit within the indicated
196number of seconds, either having
197received a login name and passed control
198to
199.IR login ,
200or having received an alarm signal, and exited.
201This may be useful to hangup dial in lines.
202.PP
203Output from
204.I getty
205is even parity unless
206.B op
207is specified.
208.B Op
209may be specified with
210.B ap
211to allow any parity on input, but generate odd parity output.
212Note: this only applies while getty is being run,
213terminal driver limitations prevent a more complete
214implementation.
215.I Getty
216does not check parity of input characters in
217.I RAW
218mode.
219.SH "SEE ALSO"
220termcap(5),
221getty(8).
222.SH BUGS
223Some ignorant peasants insist on changing the default special
224characters, so it is wise to always specify (at least) the
225erase, kill, and interrupt characters in the
226.B default
227table.
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.