gettytab revision 209954
1207141Sjeff# $FreeBSD: head/etc/gettytab 209954 2010-07-12 19:09:18Z bcr $
2207141Sjeff#	from: @(#)gettytab	5.14 (Berkeley) 3/27/91
3207141Sjeff#
4207141Sjeff# Most of the table entries here are just copies of the old getty table,
5207141Sjeff# it is by no means certain, or even likely, that any of them are optimal
6207141Sjeff# for any purpose whatever.  Nor is it likely that more than a couple are
7207141Sjeff# even correct.
8207141Sjeff#
9207141Sjeff# The default gettytab entry, used to set defaults for all other
10207141Sjeff# entries, and in cases where getty is called with no table name.
11207141Sjeff#
12207141Sjeff# cb, ce and ck are desirable on most crt's.  The non-crt entries need to
13207141Sjeff# be changed to turn them off (:cb@:ce@:ck@:).
14207141Sjeff#
15207141Sjeff# lc should always be on; it's a remainder of some stone age when there
16207141Sjeff# have been terminals around not being able of handling lower-case
17207141Sjeff# characters. Those terminals aren't supported any longer, but getty is
18207141Sjeff# `smart' about them by default.
19207141Sjeff#
20207141Sjeff# Parity defaults to even, but the Pc entry and all the `std' entries
21207141Sjeff# specify no parity.   The different parities are:
22207141Sjeff#     (none): same as ep for getty.  login will use terminal as is.
23207141Sjeff#     ep:     getty will use raw mode (cs8 -parenb) (unless rw is set) and
24207141Sjeff#             fake parity.  login will use even parity (cs7 parenb -parodd).
25207141Sjeff#     op:     same as ep except odd parity (cs7 parenb parodd) for login.
26207141Sjeff#             getty will fake odd parity as well.
27207141Sjeff#     ap:     same as ep except -inpck instead of inpck for login.
28207141Sjeff#             ap overrides op and ep.
29207141Sjeff#     np:     1. don't fake parity in getty.  The fake parity garbles
30207141Sjeff#                characters on non-terminals (like pccons) that don't
31218604Skib#                support parity.  It would probably better for getty not to
32207141Sjeff#                try to fake parity.  It could just use cbreak mode so as
33207141Sjeff#                not to force cs8 and let the hardware handle the parity.
34207141Sjeff#                login has to be rely on the hardware anyway.
35207141Sjeff#             2. set cs8 -parenb -istrip -inpck.
36207141Sjeff#     ep:op:  same as ap.
37207141Sjeff#
38207141Sjeffdefault:\
39207141Sjeff	:cb:ce:ck:lc:fd#1000:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200:\
40207141Sjeff	:if=/etc/issue:
41217769Smckusick
42217769Smckusick#
43209408Sdelphij# Fixed speed entries
44209408Sdelphij#
45207141Sjeff#	The "std.NNN" names are known to the special case
46207141Sjeff#	portselector code in getty, however they can
47207141Sjeff#	be assigned to any table desired.
48207141Sjeff#	The "NNN-baud" names are known to the special case
49207141Sjeff#	autobaud code in getty, and likewise can
50207141Sjeff#	be assigned to any table desired (hopefully the same speed).
51209408Sdelphij#
52217769Smckusicka|std.110|110-baud:\
53207141Sjeff	:np:nd#1:cd#1:uc:sp#110:
54207141Sjeffb|std.134|134.5-baud:\
55207141Sjeff	:np:nd#1:cd#2:ff#1:td#1:sp#134:ht:nl:
56207141Sjeff1|std.150|150-baud:\
57207141Sjeff	:np:nd#1:cd#2:td#1:fd#1:sp#150:ht:nl:lm=\E\72\6\6\17login\72 :
58207141Sjeffc|std.300|300-baud:\
59207141Sjeff	:np:nd#1:cd#1:sp#300:
60207141Sjeffd|std.600|600-baud:\
61207141Sjeff	:np:nd#1:cd#1:sp#600:
62207141Sjefff|std.1200|1200-baud:\
63207141Sjeff	:np:fd#1:sp#1200:
64207141Sjeff6|std.2400|2400-baud:\
65207141Sjeff	:np:sp#2400:
66207141Sjeff7|std.4800|4800-baud:\
67207141Sjeff	:np:sp#4800:
68207141Sjeff2|std.9600|9600-baud:\
69207141Sjeff	:np:sp#9600:
70207141Sjeffg|std.19200|19200-baud:\
71207141Sjeff	:np:sp#19200:
72207141Sjeffstd.38400|38400-baud:\
73207141Sjeff	:np:sp#38400:
74207141Sjeffstd.57600|57600-baud:\
75207141Sjeff	:np:sp#57600:
76207141Sjeffstd.115200|115200-baud:\
77207141Sjeff	:np:sp#115200:
78207141Sjeffstd.230400|230400-baud:\
79207141Sjeff	:np:sp#230400:
80207141Sjeff
81207141Sjeff#
82207141Sjeff# Entry specifying explicit device settings.  See termios(4) and
83207141Sjeff# /usr/include/termios.h, too.  The entry forces the tty into
84207141Sjeff# CLOCAL mode (so no DCD is required), and uses Xon/Xoff flow control.
85207141Sjeff#
86207141Sjeff# cflags: CLOCAL | HUPCL | CREAD | CS8
87207141Sjeff# oflags: OPOST | ONLCR | OXTABS
88207141Sjeff# iflags: IXOFF | IXON | ICRNL | IGNPAR
89207141Sjeff# lflags: IEXTEN | ICANON | ISIG | ECHOCTL | ECHO | ECHOK | ECHOE | ECHOKE
90207141Sjeff#
91207141Sjeff# The `0' flags don't have input enabled.  The `1' flags don't echo.
92207141Sjeff# (Echoing is done inside getty itself.)
93207141Sjeff#
94207141Sjefflocal.9600|CLOCAL tty @ 9600 Bd:\
95207141Sjeff	:c0#0x0000c300:c1#0x0000cb00:c2#0x0000cb00:\
96207141Sjeff	:o0#0x00000007:o1#0x00000002:o2#0x00000007:\
97207141Sjeff	:i0#0x00000704:i1#0x00000000:i2#0x00000704:\
98207141Sjeff	:l0#0x000005cf:l1#0x00000000:l2#0x000005cf:\
99207141Sjeff	:sp#9600:
100207141Sjeff
101207141Sjeff#
102207141Sjeff# Dial in rotary tables, speed selection via 'break'
103207141Sjeff#
104207141Sjeff0|d300|Dial-300:\
105207141Sjeff	:nx=d1200:cd#2:sp#300:
106207141Sjeffd1200|Dial-1200:\
107207141Sjeff	:nx=d150:fd#1:sp#1200:
108207141Sjeffd150|Dial-150:\
109207141Sjeff	:nx=d110:lm@:tc=150-baud:
110207141Sjeffd110|Dial-110:\
111207141Sjeff	:nx=d300:tc=300-baud:
112207141Sjeff
113207141Sjeff#
114207141Sjeff# Fast dialup terminals, 2400/1200/300 rotary (can start either way)
115207141Sjeff#
116207141SjeffD2400|d2400|Fast-Dial-2400:\
117207141Sjeff	:nx=D1200:tc=2400-baud:
118207141Sjeff3|D1200|Fast-Dial-1200:\
119207141Sjeff	:nx=D300:tc=1200-baud:
120207141Sjeff5|D300|Fast-Dial-300:\
121207141Sjeff	:nx=D2400:tc=300-baud:
122207141Sjeff
123207141Sjeff#
124207141Sjeff#telebit (19200)
125207141Sjeff#
126207141Sjefft19200:\
127207141Sjeff	:nx=t2400:tc=19200-baud:
128207141Sjefft2400:\
129207141Sjeff	:nx=t1200:tc=2400-baud:
130207141Sjefft1200:\
131207141Sjeff	:nx=t19200:tc=1200-baud:
132207141Sjeff
133207141Sjeff#
134207141Sjeff#telebit (9600)
135207141Sjeff#
136207141Sjefft9600:\
137207141Sjeff	:nx=t2400a:tc=9600-baud:
138207141Sjefft2400a:\
139207141Sjeff	:nx=t1200a:tc=2400-baud:
140207141Sjefft1200a:\
141207141Sjeff	:nx=t9600:tc=1200-baud:
142207141Sjeff
143207141Sjeff#
144207141Sjeff# Odd special case terminals
145207141Sjeff#
146207141Sjeff-|tty33|asr33|Pity the poor user of this beast:\
147207141Sjeff	:tc=110-baud:
148207141Sjeff
149209408Sdelphij4|Console|Console Decwriter II:\
150209408Sdelphij	:nd@:cd@:rw:tc=300-baud:
151207141Sjeff
152209408Sdelphije|Console-1200|Console Decwriter III:\
153207141Sjeff	:fd@:nd@:cd@:rw:tc=1200-baud:
154207141Sjeff
155207141Sjeffi|Interdata console:\
156207141Sjeff	:uc:sp#0:
157207141Sjeff
158207141Sjeffl|lsi chess terminal:\
159207141Sjeff	:sp#300:
160207141Sjeff
161207141SjeffX|Xwindow|X window system:\
162207141Sjeff	:fd@:nd@:cd@:rw:sp#9600:
163207141Sjeff
164207141SjeffP|Pc|Pc console:\
165207141Sjeff	:ht:np:sp#9600:
166209408Sdelphij
167207141Sjeff#
168207141Sjeff# Weirdo special case for fast crt's with hardcopy devices
169207141Sjeff#
170207141Sjeff8|T9600|CRT with hardcopy:\
171209408Sdelphij	:nx=T300:tc=9600-baud:
172209408Sdelphij9|T300|CRT with hardcopy (300):\
173209408Sdelphij	:nx=T9600:tc=300-baud:
174209408Sdelphij
175209408Sdelphij#
176209408Sdelphij# Plugboard, and misc other terminals
177209408Sdelphij#
178209408Sdelphijplug-9600|Plugboard-9600:\
179209408Sdelphij	:pf#1:tc=9600-baud:
180209408Sdelphijp|P9600|Plugboard-9600-rotary:\
181209408Sdelphij	:pf#1:nx=P300:tc=9600-baud:
182209408Sdelphijq|P300|Plugboard-300:\
183209408Sdelphij	:pf#1:nx=P1200:tc=300-baud:
184209408Sdelphijr|P1200|Plugboard-1200:\
185209408Sdelphij	:pf#1:nx=P9600:tc=1200-baud:
186209408Sdelphij
187209408Sdelphij#
188209408Sdelphij# XXXX Port selector
189209408Sdelphij#
190207141Sjeffs|DSW|Port Selector:\
191207141Sjeff	:ps:sp#2400:
192207141Sjeff
193207141Sjeff#
194207141Sjeff# Auto-baud speed detect entry for Micom 600.
195207141Sjeff# Special code in getty will switch this out
196207141Sjeff# to one of the NNN-baud entries.
197207141Sjeff#
198207141SjeffA|Auto-baud:\
199209408Sdelphij	:ab:sp#2400:f0#040:
200207141Sjeff
201209408Sdelphij#
202207141Sjeff# autologin - automatically log in as root
203207141Sjeff#
204207141Sjeff
205218604Skibautologin|al.9600:\
206218604Skib	:al=root:tc=std.9600:
207218604Skibal.19200:\
208218604Skib	:al=root:tc=std.19200:
209229256Skibal.38400:\
210207141Sjeff	:al=root:tc=std.38400:
211207141Sjeffal.57600:\
212207141Sjeff	:al=root:tc=std.57600:
213207141Sjeffal.115200:\
214207141Sjeff	:al=root:tc=std.115200:
215207141Sjeffal.230400:\
216207141Sjeff	:al=root:tc=std.230400:
217207141Sjeff
218207141Sjeff#
219207141Sjeff# Entries for 3-wire serial terminals.  These don't supply carrier, so
220207141Sjeff# clocal needs to be set, and crtscts needs to be unset.
221207141Sjeff#
222207141Sjeff3wire.9600|9600-3wire:\
223207141Sjeff	:np:nc:sp#9600:
224207141Sjeff3wire.19200|19200-3wire:\
225207141Sjeff	:np:nc:sp#19200:
226207141Sjeff3wire.38400|38400-3wire:\
227207141Sjeff	:np:nc:sp#38400:
228207141Sjeff3wire.57600|57600-3wire:\
229207141Sjeff	:np:nc:sp#57600:
230207141Sjeff3wire.115200|115200-3wire:\
231207141Sjeff	:np:nc:sp#115200:
232207141Sjeff3wire.230400|230400-3wire:\
233207141Sjeff	:np:nc:sp#230400:
234207141Sjeff