gettytab revision 61513
1255130Srpaulo# $FreeBSD: head/etc/gettytab 61513 2000-06-10 19:49:16Z phk $
2255130Srpaulo#	from: @(#)gettytab	5.14 (Berkeley) 3/27/91
3255130Srpaulo#
4255130Srpaulo# Most of the table entries here are just copies of the old getty table,
5255130Srpaulo# it is by no means certain, or even likely, that any of them are optimal
6255130Srpaulo# for any purpose whatever.  Nor is it likely that more than a couple are
7255130Srpaulo# even correct.
8255130Srpaulo#
9255130Srpaulo# The default gettytab entry, used to set defaults for all other
10255130Srpaulo# entries, and in cases where getty is called with no table name.
11255130Srpaulo#
12255130Srpaulo# cb, ce and ck are desirable on most crt's.  The non-crt entries need to
13255130Srpaulo# be changed to turn them off (:cb@:ce@:ck@:).
14255130Srpaulo#
15255130Srpaulo# lc should always be on; it's a remainder of some stone age when there
16255130Srpaulo# have been terminals around not being able of handling lower-case
17255130Srpaulo# characters. Those terminals aren't supported any longer, but getty is
18255130Srpaulo# `smart' about them by default.
19255130Srpaulo#
20255130Srpaulo# Parity defaults to even, but the Pc entry and all the `std' entries
21255130Srpaulo# specify no parity.   The different parities are:
22255130Srpaulo#     (none): same as even except -inpck instead of inpck for login.
23255130Srpaulo#     ep:     getty will use raw mode (cs8 -parenb) (unless rw is set) and
24255130Srpaulo#             fake parity.  login will use even parity (cs7 parenb -parodd).
25255130Srpaulo#     op:     same as ep except odd parity (cs7 parenb parodd) for login.
26255130Srpaulo#             op overrides ep.
27255130Srpaulo#     ap:     same as ep except -inpck instead of inpck for login.
28255130Srpaulo#             ap overrides op and ep.
29255130Srpaulo#     np:     1. don't fake parity in getty.  The fake parity garbles
30255130Srpaulo#                characters on non-terminals (like pccons) that don't
31255130Srpaulo#                support parity.  It would probably better for getty not to
32255130Srpaulo#                try to fake parity.  It could just use cbreak mode so as
33255130Srpaulo#                not to force cs8 and let the hardware handle the parity.
34255130Srpaulo#                login has to be rely on the hardware anyway.
35255130Srpaulo#             2. set PASS8, giving cs8 -parenb -istrip -inpck.
36255130Srpaulo#     np:ep:  same as np except inpck.
37255130Srpaulo#     np:op:  same as np:ep except for parodd (but parodd is overridden).
38255130Srpaulo#     np:ap:  same as np except istrip.
39255130Srpaulo#
40255130Srpaulodefault:\
41255130Srpaulo	:cb:ce:ck:lc:fd#1000:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200:
42255130Srpaulo
43255130Srpaulo#
44255130Srpaulo# Fixed speed entries
45255130Srpaulo#
46255130Srpaulo#	The "std.NNN" names are known to the special case
47255130Srpaulo#	portselector code in getty, however they can
48255130Srpaulo#	be assigned to any table desired.
49255130Srpaulo#	The "NNN-baud" names are known to the special case
50255130Srpaulo#	autobaud code in getty, and likewise can
51255130Srpaulo#	be assigned to any table desired (hopefully the same speed).
52255130Srpaulo#
53255130Srpauloa|std.110|110-baud:\
54255130Srpaulo	:np:nd#1:cd#1:uc:sp#110:
55255130Srpaulob|std.134|134.5-baud:\
56255130Srpaulo	:np:nd#1:cd#2:ff#1:td#1:sp#134:ht:nl:
57255130Srpaulo1|std.150|150-baud:\
58255130Srpaulo	:np:nd#1:cd#2:td#1:fd#1:sp#150:ht:nl:lm=\E\72\6\6\17login\72 :
59255130Srpauloc|std.300|300-baud:\
60255130Srpaulo	:np:nd#1:cd#1:sp#300:
61255130Srpaulod|std.600|600-baud:\
62255130Srpaulo	:np:nd#1:cd#1:sp#600:
63255130Srpaulof|std.1200|1200-baud:\
64255130Srpaulo	:np:fd#1:sp#1200:
65255130Srpaulo6|std.2400|2400-baud:\
66255130Srpaulo	:np:sp#2400:
67255130Srpaulo7|std.4800|4800-baud:\
68255130Srpaulo	:np:sp#4800:
69255130Srpaulo2|std.9600|9600-baud:\
70255130Srpaulo	:np:sp#9600:
71255130Srpaulog|std.19200|19200-baud:\
72255130Srpaulo	:np:sp#19200:
73255130Srpaulostd.38400|38400-baud:\
74255130Srpaulo	:np:sp#38400:
75255130Srpaulostd.57600|57600-baud:\
76255130Srpaulo	:np:sp#57600:
77255130Srpaulostd.115200|115200-baud:\
78255130Srpaulo	:np:sp#115200:
79255130Srpaulostd.230400|230400-baud:\
80255130Srpaulo	:np:sp#230400:
81255130Srpaulo
82255130Srpaulo#
83255130Srpaulo# Entry specifying explicit device settings.  See termios(4) and
84255130Srpaulo# /usr/include/termios.h, too.  The entry forces the tty into
85255130Srpaulo# CLOCAL mode (so no DCD is required), and uses Xon/Xoff flow control.
86255130Srpaulo#
87255130Srpaulo# cflags: CLOCAL | HUPCL | CREAD | CS8
88255130Srpaulo# oflags: OPOST | ONLCR | OXTABS
89255130Srpaulo# iflags: IXOFF | IXON | ICRNL | IGNPAR
90255130Srpaulo# lflags: IEXTEN | ICANON | ISIG | ECHOCTL | ECHO | ECHOK | ECHOE | ECHOKE
91255130Srpaulo#
92255130Srpaulo# The `0' flags don't have input enabled.  The `1' flags don't echo.
93255130Srpaulo# (Echoing is done inside getty itself.)
94255130Srpaulo#
95255130Srpaulolocal.9600|CLOCAL tty @ 9600 Bd:\
96255130Srpaulo	:c0#0x0000c300:c1#0x0000cb00:c2#0x0000cb00:\
97255130Srpaulo	:o0#0x00000007:o1#0x00000002:o2#0x00000007:\
98255130Srpaulo	:i0#0x00000704:i1#0x00000000:i2#0x00000704:\
99255130Srpaulo	:l0#0x000005cf:l1#0x00000000:l2#0x000005cf:\
100255130Srpaulo	:sp#9600:
101255130Srpaulo
102255130Srpaulo#
103255130Srpaulo# Dial in rotary tables, speed selection via 'break'
104255130Srpaulo#
105255130Srpaulo0|d300|Dial-300:\
106255130Srpaulo	:nx=d1200:cd#2:sp#300:
107255130Srpaulod1200|Dial-1200:\
108255130Srpaulo	:nx=d150:fd#1:sp#1200:
109255130Srpaulod150|Dial-150:\
110255130Srpaulo	:nx=d110:lm@:tc=150-baud:
111255130Srpaulod110|Dial-110:\
112255130Srpaulo	:nx=d300:tc=300-baud:
113255130Srpaulo
114255130Srpaulo#
115255130Srpaulo# Fast dialup terminals, 2400/1200/300 rotary (can start either way)
116255130Srpaulo#
117255130SrpauloD2400|d2400|Fast-Dial-2400:\
118255130Srpaulo	:nx=D1200:tc=2400-baud:
119255130Srpaulo3|D1200|Fast-Dial-1200:\
120255130Srpaulo	:nx=D300:tc=1200-baud:
121255130Srpaulo5|D300|Fast-Dial-300:\
122255130Srpaulo	:nx=D2400:tc=300-baud:
123255130Srpaulo
124#
125#telebit (19200)
126#
127t19200:\
128	:nx=t2400:tc=19200-baud:
129t2400:\
130	:nx=t1200:tc=2400-baud:
131t1200:\
132	:nx=t19200:tc=1200-baud:
133
134#
135#telebit (9600)
136#
137t9600:\
138	:nx=t2400a:tc=9600-baud:
139t2400a:\
140	:nx=t1200a:tc=2400-baud:
141t1200a:\
142	:nx=t9600:tc=1200-baud:
143
144#
145# Odd special case terminals
146#
147-|tty33|asr33|Pity the poor user of this beast:\
148	:tc=110-baud:
149
1504|Console|Console Decwriter II:\
151	:nd@:cd@:rw:tc=300-baud:
152
153e|Console-1200|Console Decwriter III:\
154	:fd@:nd@:cd@:rw:tc=1200-baud:
155
156i|Interdata console:\
157	:uc:sp#0:
158
159l|lsi chess terminal:\
160	:sp#300:
161
162X|Xwindow|X window system:\
163	:fd@:nd@:cd@:rw:sp#9600:
164
165P|Pc|Pc console:\
166	:ht:np:sp#115200:
167
168#
169# Wierdo special case for fast crt's with hardcopy devices
170#
1718|T9600|CRT with hardcopy:\
172	:nx=T300:tc=9600-baud:
1739|T300|CRT with hardcopy (300):\
174	:nx=T9600:tc=300-baud:
175
176#
177# Plugboard, and misc other terminals
178#
179plug-9600|Plugboard-9600:\
180	:pf#1:tc=9600-baud:
181p|P9600|Plugboard-9600-rotary:\
182	:pf#1:nx=P300:tc=9600-baud:
183q|P300|Plugboard-300:\
184	:pf#1:nx=P1200:tc=300-baud:
185r|P1200|Plugboard-1200:\
186	:pf#1:nx=P9600:tc=1200-baud:
187
188#
189# XXXX Port selector
190#
191s|DSW|Port Selector:\
192	:ps:sp#2400:
193
194#
195# Auto-baud speed detect entry for Micom 600.
196# Special code in getty will switch this out
197# to one of the NNN-baud entries.
198#
199A|Auto-baud:\
200	:ab:sp#2400:f0#040:
201
202#
203# autologin - automatically log in as root
204#
205
206autologin|al.9600:\
207	:al=root:tc=std.9600:
208