gettytab revision 157658
1129198Scognet# $FreeBSD: head/etc/gettytab 157658 2006-04-11 09:54:23Z des $
2129198Scognet#	from: @(#)gettytab	5.14 (Berkeley) 3/27/91
3139735Simp#
4129198Scognet# Most of the table entries here are just copies of the old getty table,
5129198Scognet# it is by no means certain, or even likely, that any of them are optimal
6129198Scognet# for any purpose whatever.  Nor is it likely that more than a couple are
7129198Scognet# even correct.
8129198Scognet#
9129198Scognet# The default gettytab entry, used to set defaults for all other
10236991Simp# entries, and in cases where getty is called with no table name.
11129198Scognet#
12129198Scognet# cb, ce and ck are desirable on most crt's.  The non-crt entries need to
13129198Scognet# be changed to turn them off (:cb@:ce@:ck@:).
14129198Scognet#
15129198Scognet# lc should always be on; it's a remainder of some stone age when there
16236991Simp# have been terminals around not being able of handling lower-case
17129198Scognet# characters. Those terminals aren't supported any longer, but getty is
18129198Scognet# `smart' about them by default.
19129198Scognet#
20236991Simp# Parity defaults to even, but the Pc entry and all the `std' entries
21129198Scognet# specify no parity.   The different parities are:
22236991Simp#     (none): same as ep for getty.  login will use terminal as is.
23129198Scognet#     ep:     getty will use raw mode (cs8 -parenb) (unless rw is set) and
24129198Scognet#             fake parity.  login will use even parity (cs7 parenb -parodd).
25129198Scognet#     op:     same as ep except odd parity (cs7 parenb parodd) for login.
26129198Scognet#             getty will fake odd parity as well.
27236991Simp#     ap:     same as ep except -inpck instead of inpck for login.
28129198Scognet#             ap overrides op and ep.
29129198Scognet#     np:     1. don't fake parity in getty.  The fake parity garbles
30129198Scognet#                characters on non-terminals (like pccons) that don't
31129198Scognet#                support parity.  It would probably better for getty not to
32129198Scognet#                try to fake parity.  It could just use cbreak mode so as
33129198Scognet#                not to force cs8 and let the hardware handle the parity.
34129198Scognet#                login has to be rely on the hardware anyway.
35132402Scognet#             2. set cs8 -parenb -istrip -inpck.
36129198Scognet#     ep:op:  same as ap.
37129198Scognet#
38129198Scognetdefault:\
39132059Scognet	:cb:ce:ck:lc:fd#1000:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200:\
40148666Sjeff	:if=/etc/issue:
41129198Scognet
42129198Scognet#
43129198Scognet# Fixed speed entries
44129198Scognet#
45138129Sdas#	The "std.NNN" names are known to the special case
46174195Srwatson#	portselector code in getty, however they can
47129198Scognet#	be assigned to any table desired.
48129198Scognet#	The "NNN-baud" names are known to the special case
49129198Scognet#	autobaud code in getty, and likewise can
50129198Scognet#	be assigned to any table desired (hopefully the same speed).
51129198Scognet#
52129198Scogneta|std.110|110-baud:\
53245549Sandrew	:np:nd#1:cd#1:uc:sp#110:
54129198Scognetb|std.134|134.5-baud:\
55245549Sandrew	:np:nd#1:cd#2:ff#1:td#1:sp#134:ht:nl:
56245549Sandrew1|std.150|150-baud:\
57245549Sandrew	:np:nd#1:cd#2:td#1:fd#1:sp#150:ht:nl:lm=\E\72\6\6\17login\72 :
58245549Sandrewc|std.300|300-baud:\
59245549Sandrew	:np:nd#1:cd#1:sp#300:
60245549Sandrewd|std.600|600-baud:\
61245549Sandrew	:np:nd#1:cd#1:sp#600:
62245549Sandrewf|std.1200|1200-baud:\
63245549Sandrew	:np:fd#1:sp#1200:
64245549Sandrew6|std.2400|2400-baud:\
65245549Sandrew	:np:sp#2400:
66245549Sandrew7|std.4800|4800-baud:\
67245549Sandrew	:np:sp#4800:
68245549Sandrew2|std.9600|9600-baud:\
69245549Sandrew	:np:sp#9600:
70245549Sandrewg|std.19200|19200-baud:\
71245549Sandrew	:np:sp#19200:
72245549Sandrewstd.38400|38400-baud:\
73245549Sandrew	:np:sp#38400:
74245549Sandrewstd.57600|57600-baud:\
75245549Sandrew	:np:sp#57600:
76245549Sandrewstd.115200|115200-baud:\
77245549Sandrew	:np:sp#115200:
78245549Sandrewstd.230400|230400-baud:\
79245549Sandrew	:np:sp#230400:
80245549Sandrew
81245549Sandrew#
82245549Sandrew# Entry specifying explicit device settings.  See termios(4) and
83245549Sandrew# /usr/include/termios.h, too.  The entry forces the tty into
84245549Sandrew# CLOCAL mode (so no DCD is required), and uses Xon/Xoff flow control.
85245549Sandrew#
86245549Sandrew# cflags: CLOCAL | HUPCL | CREAD | CS8
87245549Sandrew# oflags: OPOST | ONLCR | OXTABS
88245549Sandrew# iflags: IXOFF | IXON | ICRNL | IGNPAR
89245549Sandrew# lflags: IEXTEN | ICANON | ISIG | ECHOCTL | ECHO | ECHOK | ECHOE | ECHOKE
90245549Sandrew#
91245549Sandrew# The `0' flags don't have input enabled.  The `1' flags don't echo.
92245549Sandrew# (Echoing is done inside getty itself.)
93245549Sandrew#
94245549Sandrewlocal.9600|CLOCAL tty @ 9600 Bd:\
95245549Sandrew	:c0#0x0000c300:c1#0x0000cb00:c2#0x0000cb00:\
96245549Sandrew	:o0#0x00000007:o1#0x00000002:o2#0x00000007:\
97245549Sandrew	:i0#0x00000704:i1#0x00000000:i2#0x00000704:\
98245549Sandrew	:l0#0x000005cf:l1#0x00000000:l2#0x000005cf:\
99245549Sandrew	:sp#9600:
100245549Sandrew
101245549Sandrew#
102245549Sandrew# Dial in rotary tables, speed selection via 'break'
103245549Sandrew#
104245549Sandrew0|d300|Dial-300:\
105245549Sandrew	:nx=d1200:cd#2:sp#300:
106245549Sandrewd1200|Dial-1200:\
107245549Sandrew	:nx=d150:fd#1:sp#1200:
108245549Sandrewd150|Dial-150:\
109245549Sandrew	:nx=d110:lm@:tc=150-baud:
110245549Sandrewd110|Dial-110:\
111252320Sandrew	:nx=d300:tc=300-baud:
112245549Sandrew
113245549Sandrew#
114245549Sandrew# Fast dialup terminals, 2400/1200/300 rotary (can start either way)
115245549Sandrew#
116245549SandrewD2400|d2400|Fast-Dial-2400:\
117245549Sandrew	:nx=D1200:tc=2400-baud:
118245549Sandrew3|D1200|Fast-Dial-1200:\
119245549Sandrew	:nx=D300:tc=1200-baud:
120245549Sandrew5|D300|Fast-Dial-300:\
121245549Sandrew	:nx=D2400:tc=300-baud:
122245549Sandrew
123245549Sandrew#
124245549Sandrew#telebit (19200)
125245549Sandrew#
126245549Sandrewt19200:\
127245549Sandrew	:nx=t2400:tc=19200-baud:
128245549Sandrewt2400:\
129245549Sandrew	:nx=t1200:tc=2400-baud:
130245549Sandrewt1200:\
131245549Sandrew	:nx=t19200:tc=1200-baud:
132245549Sandrew
133245549Sandrew#
134245549Sandrew#telebit (9600)
135245549Sandrew#
136245549Sandrewt9600:\
137245549Sandrew	:nx=t2400a:tc=9600-baud:
138245549Sandrewt2400a:\
139245549Sandrew	:nx=t1200a:tc=2400-baud:
140245549Sandrewt1200a:\
141245549Sandrew	:nx=t9600:tc=1200-baud:
142245549Sandrew
143245549Sandrew#
144245549Sandrew# Odd special case terminals
145245549Sandrew#
146245549Sandrew-|tty33|asr33|Pity the poor user of this beast:\
147245549Sandrew	:tc=110-baud:
148245549Sandrew
149245549Sandrew4|Console|Console Decwriter II:\
150245549Sandrew	:nd@:cd@:rw:tc=300-baud:
151245549Sandrew
152245549Sandrewe|Console-1200|Console Decwriter III:\
153245549Sandrew	:fd@:nd@:cd@:rw:tc=1200-baud:
154245549Sandrew
155245549Sandrewi|Interdata console:\
156245549Sandrew	:uc:sp#0:
157245549Sandrew
158245549Sandrewl|lsi chess terminal:\
159245549Sandrew	:sp#300:
160245549Sandrew
161245549SandrewX|Xwindow|X window system:\
162245549Sandrew	:fd@:nd@:cd@:rw:sp#9600:
163245549Sandrew
164245549SandrewP|Pc|Pc console:\
165245549Sandrew	:ht:np:sp#115200:
166245549Sandrew
167245549Sandrew#
168245549Sandrew# Wierdo special case for fast crt's with hardcopy devices
169245549Sandrew#
170245549Sandrew8|T9600|CRT with hardcopy:\
171245549Sandrew	:nx=T300:tc=9600-baud:
172245549Sandrew9|T300|CRT with hardcopy (300):\
173245549Sandrew	:nx=T9600:tc=300-baud:
174245549Sandrew
175245549Sandrew#
176245549Sandrew# Plugboard, and misc other terminals
177245549Sandrew#
178245549Sandrewplug-9600|Plugboard-9600:\
179245549Sandrew	:pf#1:tc=9600-baud:
180245549Sandrewp|P9600|Plugboard-9600-rotary:\
181245549Sandrew	:pf#1:nx=P300:tc=9600-baud:
182245549Sandrewq|P300|Plugboard-300:\
183245549Sandrew	:pf#1:nx=P1200:tc=300-baud:
184245549Sandrewr|P1200|Plugboard-1200:\
185245549Sandrew	:pf#1:nx=P9600:tc=1200-baud:
186245549Sandrew
187245549Sandrew#
188245549Sandrew# XXXX Port selector
189245549Sandrew#
190245549Sandrews|DSW|Port Selector:\
191245549Sandrew	:ps:sp#2400:
192245549Sandrew
193245549Sandrew#
194245549Sandrew# Auto-baud speed detect entry for Micom 600.
195245549Sandrew# Special code in getty will switch this out
196245549Sandrew# to one of the NNN-baud entries.
197245549Sandrew#
198245549SandrewA|Auto-baud:\
199245549Sandrew	:ab:sp#2400:f0#040:
200245549Sandrew
201245549Sandrew#
202245549Sandrew# autologin - automatically log in as root
203245549Sandrew#
204245549Sandrew
205245549Sandrewautologin|al.9600:\
206245549Sandrew	:al=root:tc=std.9600:
207245549Sandrewal.19200:\
208245549Sandrew	:al=root:tc=std.19200:
209245549Sandrewal.38400:\
210245549Sandrew	:al=root:tc=std.38400:
211245549Sandrewal.57600:\
212245549Sandrew	:al=root:tc=std.57600:
213245549Sandrewal.115200:\
214245549Sandrew	:al=root:tc=std.115200:
215245549Sandrewal.230400:\
216245549Sandrew	:al=root:tc=std.230400:
217245549Sandrew
218245549Sandrew#
219245549Sandrew# Entries for 3-wire serial terminals.  These don't supply carrier, so
220245549Sandrew# clocal needs to be set, and crtscts needs to be unset.
221245549Sandrew#
222245549Sandrew3wire.9600|9600-3wire:\
223245549Sandrew	:np:nc:sp#9600:
224245549Sandrew3wire.19200|19200-3wire:\
225245549Sandrew	:np:nc:sp#19200:
226245549Sandrew3wire.38400|38400-3wire:\
227245549Sandrew	:np:nc:sp#38400:
228245549Sandrew3wire.57600|57600-3wire:\
229245549Sandrew	:np:nc:sp#57600:
230245549Sandrew3wire.115200|115200-3wire:\
231245549Sandrew	:np:nc:sp#115200:
232245549Sandrew3wire.230400|230400-3wire:\
233245549Sandrew	:np:nc:sp#230400:
234245549Sandrew