xref: /freebsd/libexec/getty/gettytab (revision 2e3f49888ec8851bafb22011533217487764fdb0)
1# Most of the table entries here are just copies of the old getty table,
2# it is by no means certain, or even likely, that any of them are optimal
3# for any purpose whatever.  Nor is it likely that more than a couple are
4# even correct.
5#
6# The default gettytab entry, used to set defaults for all other
7# entries, and in cases where getty is called with no table name.
8#
9# cb, ce and ck are desirable on most crt's.  The non-crt entries need to
10# be changed to turn them off (:cb@:ce@:ck@:).
11#
12# lc should always be on; it's a remainder of some stone age when there
13# have been terminals around not being able of handling lower-case
14# characters. Those terminals aren't supported any longer, but getty is
15# `smart' about them by default.
16#
17# Parity defaults to even, but the Pc entry and all the `std' entries
18# specify no parity.   The different parities are:
19#     (none): same as ep for getty.  login will use terminal as is.
20#     ep:     getty will use raw mode (cs8 -parenb) (unless rw is set) and
21#             fake parity.  login will use even parity (cs7 parenb -parodd).
22#     op:     same as ep except odd parity (cs7 parenb parodd) for login.
23#             getty will fake odd parity as well.
24#     ap:     same as ep except -inpck instead of inpck for login.
25#             ap overrides op and ep.
26#     np:     1. don't fake parity in getty.  The fake parity garbles
27#                characters on non-terminals (like pccons) that don't
28#                support parity.  It would probably better for getty not to
29#                try to fake parity.  It could just use cbreak mode so as
30#                not to force cs8 and let the hardware handle the parity.
31#                login has to be rely on the hardware anyway.
32#             2. set cs8 -parenb -istrip -inpck.
33#     ep:op:  same as ap.
34#
35default:\
36	:cb:ce:ck:lc:fd#1000:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200:\
37	:if=/etc/issue:
38
39#
40# Fixed speed entries
41#
42#	The "std.NNN" names are known to the special case
43#	portselector code in getty, however they can
44#	be assigned to any table desired.
45#	The "NNN-baud" names are known to the special case
46#	autobaud code in getty, and likewise can
47#	be assigned to any table desired (hopefully the same speed).
48#
49std:\
50	:np:sp#0:
51a|std.110|110-baud:\
52	:np:nd#1:cd#1:uc:sp#110:
53b|std.134|134.5-baud:\
54	:np:nd#1:cd#2:ff#1:td#1:sp#134:ht:nl:
551|std.150|150-baud:\
56	:np:nd#1:cd#2:td#1:fd#1:sp#150:ht:nl:lm=\E\72\6\6\17login\72 :
57c|std.300|300-baud:\
58	:np:nd#1:cd#1:sp#300:
59d|std.600|600-baud:\
60	:np:nd#1:cd#1:sp#600:
61f|std.1200|1200-baud:\
62	:np:fd#1:sp#1200:
636|std.2400|2400-baud:\
64	:np:sp#2400:
657|std.4800|4800-baud:\
66	:np:sp#4800:
672|std.9600|9600-baud:\
68	:np:sp#9600:
69g|std.19200|19200-baud:\
70	:np:sp#19200:
71std.38400|38400-baud:\
72	:np:sp#38400:
73std.57600|57600-baud:\
74	:np:sp#57600:
75std.115200|115200-baud:\
76	:np:sp#115200:
77std.230400|230400-baud:\
78	:np:sp#230400:
79
80#
81# Entry specifying explicit device settings.  See termios(4) and
82# /usr/include/termios.h, too.  The entry forces the tty into
83# CLOCAL mode (so no DCD is required), and uses Xon/Xoff flow control.
84#
85# cflags: CLOCAL | HUPCL | CREAD | CS8
86# oflags: OPOST | ONLCR | OXTABS
87# iflags: IXOFF | IXON | ICRNL | IGNPAR
88# lflags: IEXTEN | ICANON | ISIG | ECHOCTL | ECHO | ECHOK | ECHOE | ECHOKE
89#
90# The `0' flags don't have input enabled.  The `1' flags don't echo.
91# (Echoing is done inside getty itself.)
92#
93local.9600|CLOCAL tty @ 9600 Bd:\
94	:c0#0x0000c300:c1#0x0000cb00:c2#0x0000cb00:\
95	:o0#0x00000007:o1#0x00000002:o2#0x00000007:\
96	:i0#0x00000704:i1#0x00000000:i2#0x00000704:\
97	:l0#0x000005cf:l1#0x00000000:l2#0x000005cf:\
98	:sp#9600:np:
99
100#
101# Dial in rotary tables, speed selection via 'break'
102#
1030|d300|Dial-300:\
104	:nx=d1200:cd#2:sp#300:
105d1200|Dial-1200:\
106	:nx=d150:fd#1:sp#1200:
107d150|Dial-150:\
108	:nx=d110:lm@:tc=150-baud:
109d110|Dial-110:\
110	:nx=d300:tc=300-baud:
111
112#
113# Fast dialup terminals, 2400/1200/300 rotary (can start either way)
114#
115D2400|d2400|Fast-Dial-2400:\
116	:nx=D1200:tc=2400-baud:
1173|D1200|Fast-Dial-1200:\
118	:nx=D300:tc=1200-baud:
1195|D300|Fast-Dial-300:\
120	:nx=D2400:tc=300-baud:
121
122#
123#telebit (19200)
124#
125t19200:\
126	:nx=t2400:tc=19200-baud:
127t2400:\
128	:nx=t1200:tc=2400-baud:
129t1200:\
130	:nx=t19200:tc=1200-baud:
131
132#
133#telebit (9600)
134#
135t9600:\
136	:nx=t2400a:tc=9600-baud:
137t2400a:\
138	:nx=t1200a:tc=2400-baud:
139t1200a:\
140	:nx=t9600:tc=1200-baud:
141
142#
143# Odd special case terminals
144#
145-|tty33|asr33|Pity the poor user of this beast:\
146	:tc=110-baud:
147
1484|Console|Console Decwriter II:\
149	:nd@:cd@:rw:tc=300-baud:
150
151e|Console-1200|Console Decwriter III:\
152	:fd@:nd@:cd@:rw:tc=1200-baud:
153
154i|Interdata console:\
155	:uc:sp#0:
156
157l|lsi chess terminal:\
158	:sp#300:
159
160X|Xwindow|X window system:\
161	:fd@:nd@:cd@:rw:sp#9600:
162
163P|Pc|Pc console:\
164	:ht:np:sp#9600:
165
166#
167# Weirdo special case for fast crt's with hardcopy devices
168#
1698|T9600|CRT with hardcopy:\
170	:nx=T300:tc=9600-baud:
1719|T300|CRT with hardcopy (300):\
172	:nx=T9600:tc=300-baud:
173
174#
175# Plugboard, and misc other terminals
176#
177plug-9600|Plugboard-9600:\
178	:pf#1:tc=9600-baud:
179p|P9600|Plugboard-9600-rotary:\
180	:pf#1:nx=P300:tc=9600-baud:
181q|P300|Plugboard-300:\
182	:pf#1:nx=P1200:tc=300-baud:
183r|P1200|Plugboard-1200:\
184	:pf#1:nx=P9600:tc=1200-baud:
185
186#
187# XXXX Port selector
188#
189s|DSW|Port Selector:\
190	:ps:sp#2400:
191
192#
193# Auto-baud speed detect entry for Micom 600.
194# Special code in getty will switch this out
195# to one of the NNN-baud entries.
196#
197A|Auto-baud:\
198	:ab:sp#2400:f0#040:
199
200#
201# autologin - automatically log in as root
202#
203
204autologin|al.9600:\
205	:al=root:tc=std.9600:
206al.19200:\
207	:al=root:tc=std.19200:
208al.38400:\
209	:al=root:tc=std.38400:
210al.57600:\
211	:al=root:tc=std.57600:
212al.115200:\
213	:al=root:tc=std.115200:
214al.230400:\
215	:al=root:tc=std.230400:
216al.Pc:\
217	:al=root:tc=Pc
218
219#
220# Entries for 3-wire serial terminals.  These don't supply carrier, so
221# clocal needs to be set, and crtscts needs to be unset.
222#
2233wire:\
224	:np:nc:sp#0:
2253wire.9600|9600-3wire:\
226	:np:nc:sp#9600:
2273wire.19200|19200-3wire:\
228	:np:nc:sp#19200:
2293wire.38400|38400-3wire:\
230	:np:nc:sp#38400:
2313wire.57600|57600-3wire:\
232	:np:nc:sp#57600:
2333wire.115200|115200-3wire:\
234	:np:nc:sp#115200:
2353wire.230400|230400-3wire:\
236	:np:nc:sp#230400:
237