150472Speter# $FreeBSD$
237Srgrimes#	from: @(#)gettytab	5.14 (Berkeley) 3/27/91
337Srgrimes#
437Srgrimes# Most of the table entries here are just copies of the old getty table,
537Srgrimes# it is by no means certain, or even likely, that any of them are optimal
637Srgrimes# for any purpose whatever.  Nor is it likely that more than a couple are
737Srgrimes# even correct.
837Srgrimes#
937Srgrimes# The default gettytab entry, used to set defaults for all other
109306Sbde# entries, and in cases where getty is called with no table name.
1137Srgrimes#
12646Sdg# cb, ce and ck are desirable on most crt's.  The non-crt entries need to
139306Sbde# be changed to turn them off (:cb@:ce@:ck@:).
14646Sdg#
156489Sjoerg# lc should always be on; it's a remainder of some stone age when there
166489Sjoerg# have been terminals around not being able of handling lower-case
176489Sjoerg# characters. Those terminals aren't supported any longer, but getty is
186489Sjoerg# `smart' about them by default.
196489Sjoerg#
209306Sbde# Parity defaults to even, but the Pc entry and all the `std' entries
219306Sbde# specify no parity.   The different parities are:
22119915Syar#     (none): same as ep for getty.  login will use terminal as is.
23646Sdg#     ep:     getty will use raw mode (cs8 -parenb) (unless rw is set) and
24646Sdg#             fake parity.  login will use even parity (cs7 parenb -parodd).
25646Sdg#     op:     same as ep except odd parity (cs7 parenb parodd) for login.
26119915Syar#             getty will fake odd parity as well.
27646Sdg#     ap:     same as ep except -inpck instead of inpck for login.
28646Sdg#             ap overrides op and ep.
29646Sdg#     np:     1. don't fake parity in getty.  The fake parity garbles
30646Sdg#                characters on non-terminals (like pccons) that don't
31646Sdg#                support parity.  It would probably better for getty not to
32646Sdg#                try to fake parity.  It could just use cbreak mode so as
336489Sjoerg#                not to force cs8 and let the hardware handle the parity.
34646Sdg#                login has to be rely on the hardware anyway.
35119915Syar#             2. set cs8 -parenb -istrip -inpck.
36119915Syar#     ep:op:  same as ap.
37646Sdg#
3837Srgrimesdefault:\
3970164Sphk	:cb:ce:ck:lc:fd#1000:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200:\
4070164Sphk	:if=/etc/issue:
4137Srgrimes
4237Srgrimes#
4337Srgrimes# Fixed speed entries
4437Srgrimes#
4537Srgrimes#	The "std.NNN" names are known to the special case
4637Srgrimes#	portselector code in getty, however they can
4737Srgrimes#	be assigned to any table desired.
4837Srgrimes#	The "NNN-baud" names are known to the special case
4937Srgrimes#	autobaud code in getty, and likewise can
5037Srgrimes#	be assigned to any table desired (hopefully the same speed).
5137Srgrimes#
52283972Sianstd:\
53283972Sian	:np:sp#0:
5437Srgrimesa|std.110|110-baud:\
55862Sache	:np:nd#1:cd#1:uc:sp#110:
5637Srgrimesb|std.134|134.5-baud:\
57862Sache	:np:nd#1:cd#2:ff#1:td#1:sp#134:ht:nl:
5837Srgrimes1|std.150|150-baud:\
59862Sache	:np:nd#1:cd#2:td#1:fd#1:sp#150:ht:nl:lm=\E\72\6\6\17login\72 :
6037Srgrimesc|std.300|300-baud:\
61862Sache	:np:nd#1:cd#1:sp#300:
6237Srgrimesd|std.600|600-baud:\
63862Sache	:np:nd#1:cd#1:sp#600:
6437Srgrimesf|std.1200|1200-baud:\
65862Sache	:np:fd#1:sp#1200:
6637Srgrimes6|std.2400|2400-baud:\
67862Sache	:np:sp#2400:
6837Srgrimes7|std.4800|4800-baud:\
69862Sache	:np:sp#4800:
7037Srgrimes2|std.9600|9600-baud:\
71862Sache	:np:sp#9600:
7237Srgrimesg|std.19200|19200-baud:\
73862Sache	:np:sp#19200:
74154Srgrimesstd.38400|38400-baud:\
75862Sache	:np:sp#38400:
76154Srgrimesstd.57600|57600-baud:\
77862Sache	:np:sp#57600:
78154Srgrimesstd.115200|115200-baud:\
79862Sache	:np:sp#115200:
8037818Sphkstd.230400|230400-baud:\
8137818Sphk	:np:sp#230400:
8237Srgrimes
8337Srgrimes#
8429610Sjoerg# Entry specifying explicit device settings.  See termios(4) and
8529610Sjoerg# /usr/include/termios.h, too.  The entry forces the tty into
8629610Sjoerg# CLOCAL mode (so no DCD is required), and uses Xon/Xoff flow control.
8729610Sjoerg#
8829610Sjoerg# cflags: CLOCAL | HUPCL | CREAD | CS8
8929610Sjoerg# oflags: OPOST | ONLCR | OXTABS
9029610Sjoerg# iflags: IXOFF | IXON | ICRNL | IGNPAR
9129610Sjoerg# lflags: IEXTEN | ICANON | ISIG | ECHOCTL | ECHO | ECHOK | ECHOE | ECHOKE
9229610Sjoerg#
9329610Sjoerg# The `0' flags don't have input enabled.  The `1' flags don't echo.
9429610Sjoerg# (Echoing is done inside getty itself.)
9529610Sjoerg#
9629610Sjoerglocal.9600|CLOCAL tty @ 9600 Bd:\
9729610Sjoerg	:c0#0x0000c300:c1#0x0000cb00:c2#0x0000cb00:\
9829610Sjoerg	:o0#0x00000007:o1#0x00000002:o2#0x00000007:\
9929610Sjoerg	:i0#0x00000704:i1#0x00000000:i2#0x00000704:\
10029610Sjoerg	:l0#0x000005cf:l1#0x00000000:l2#0x000005cf:\
101241708Speterj	:sp#9600:np:
10229610Sjoerg
10329610Sjoerg#
10437Srgrimes# Dial in rotary tables, speed selection via 'break'
10537Srgrimes#
10637Srgrimes0|d300|Dial-300:\
10737Srgrimes	:nx=d1200:cd#2:sp#300:
10837Srgrimesd1200|Dial-1200:\
10937Srgrimes	:nx=d150:fd#1:sp#1200:
11037Srgrimesd150|Dial-150:\
11137Srgrimes	:nx=d110:lm@:tc=150-baud:
11237Srgrimesd110|Dial-110:\
11337Srgrimes	:nx=d300:tc=300-baud:
11437Srgrimes
11537Srgrimes#
11637Srgrimes# Fast dialup terminals, 2400/1200/300 rotary (can start either way)
11737Srgrimes#
11837SrgrimesD2400|d2400|Fast-Dial-2400:\
11937Srgrimes	:nx=D1200:tc=2400-baud:
12037Srgrimes3|D1200|Fast-Dial-1200:\
12137Srgrimes	:nx=D300:tc=1200-baud:
12237Srgrimes5|D300|Fast-Dial-300:\
12337Srgrimes	:nx=D2400:tc=300-baud:
12437Srgrimes
12537Srgrimes#
12637Srgrimes#telebit (19200)
12737Srgrimes#
12837Srgrimest19200:\
12937Srgrimes	:nx=t2400:tc=19200-baud:
13037Srgrimest2400:\
13137Srgrimes	:nx=t1200:tc=2400-baud:
13237Srgrimest1200:\
13337Srgrimes	:nx=t19200:tc=1200-baud:
13437Srgrimes
13537Srgrimes#
13637Srgrimes#telebit (9600)
13737Srgrimes#
13837Srgrimest9600:\
139289Srgrimes	:nx=t2400a:tc=9600-baud:
14037Srgrimest2400a:\
14137Srgrimes	:nx=t1200a:tc=2400-baud:
14237Srgrimest1200a:\
14337Srgrimes	:nx=t9600:tc=1200-baud:
14437Srgrimes
14537Srgrimes#
14637Srgrimes# Odd special case terminals
14737Srgrimes#
14837Srgrimes-|tty33|asr33|Pity the poor user of this beast:\
14937Srgrimes	:tc=110-baud:
15037Srgrimes
15137Srgrimes4|Console|Console Decwriter II:\
15237Srgrimes	:nd@:cd@:rw:tc=300-baud:
15337Srgrimes
15437Srgrimese|Console-1200|Console Decwriter III:\
15537Srgrimes	:fd@:nd@:cd@:rw:tc=1200-baud:
15637Srgrimes
15737Srgrimesi|Interdata console:\
15837Srgrimes	:uc:sp#0:
15937Srgrimes
16037Srgrimesl|lsi chess terminal:\
16137Srgrimes	:sp#300:
16237Srgrimes
16337SrgrimesX|Xwindow|X window system:\
16437Srgrimes	:fd@:nd@:cd@:rw:sp#9600:
16537Srgrimes
16637SrgrimesP|Pc|Pc console:\
167198229Sed	:ht:np:sp#9600:
16837Srgrimes
16937Srgrimes#
170209954Sbcr# Weirdo special case for fast crt's with hardcopy devices
17137Srgrimes#
17237Srgrimes8|T9600|CRT with hardcopy:\
17337Srgrimes	:nx=T300:tc=9600-baud:
17437Srgrimes9|T300|CRT with hardcopy (300):\
17537Srgrimes	:nx=T9600:tc=300-baud:
17637Srgrimes
17737Srgrimes#
17837Srgrimes# Plugboard, and misc other terminals
17937Srgrimes#
18037Srgrimesplug-9600|Plugboard-9600:\
18137Srgrimes	:pf#1:tc=9600-baud:
18237Srgrimesp|P9600|Plugboard-9600-rotary:\
18337Srgrimes	:pf#1:nx=P300:tc=9600-baud:
18437Srgrimesq|P300|Plugboard-300:\
18537Srgrimes	:pf#1:nx=P1200:tc=300-baud:
18637Srgrimesr|P1200|Plugboard-1200:\
18737Srgrimes	:pf#1:nx=P9600:tc=1200-baud:
18837Srgrimes
18937Srgrimes#
19037Srgrimes# XXXX Port selector
19137Srgrimes#
19237Srgrimess|DSW|Port Selector:\
19337Srgrimes	:ps:sp#2400:
19437Srgrimes
19537Srgrimes#
19637Srgrimes# Auto-baud speed detect entry for Micom 600.
19737Srgrimes# Special code in getty will switch this out
19837Srgrimes# to one of the NNN-baud entries.
19937Srgrimes#
20037SrgrimesA|Auto-baud:\
20137Srgrimes	:ab:sp#2400:f0#040:
20261513Sphk
20361513Sphk#
20461513Sphk# autologin - automatically log in as root
20561513Sphk#
20661513Sphk
20761513Sphkautologin|al.9600:\
20861513Sphk	:al=root:tc=std.9600:
209157658Sdesal.19200:\
210157658Sdes	:al=root:tc=std.19200:
211157658Sdesal.38400:\
212157658Sdes	:al=root:tc=std.38400:
213157658Sdesal.57600:\
214157658Sdes	:al=root:tc=std.57600:
215157658Sdesal.115200:\
216157658Sdes	:al=root:tc=std.115200:
217157658Sdesal.230400:\
218157658Sdes	:al=root:tc=std.230400:
21982700Smurray
220130151Sschweikh#
22182700Smurray# Entries for 3-wire serial terminals.  These don't supply carrier, so
22282700Smurray# clocal needs to be set, and crtscts needs to be unset.
22382700Smurray#
224283972Sian3wire:\
225283972Sian	:np:nc:sp#0:
22682700Smurray3wire.9600|9600-3wire:\
22782700Smurray	:np:nc:sp#9600:
228154685Smatteo3wire.19200|19200-3wire:\
229154685Smatteo	:np:nc:sp#19200:
23082700Smurray3wire.38400|38400-3wire:\
23182700Smurray	:np:nc:sp#38400:
23282700Smurray3wire.57600|57600-3wire:\
23382700Smurray	:np:nc:sp#57600:
23482700Smurray3wire.115200|115200-3wire:\
23582700Smurray	:np:nc:sp#115200:
23682700Smurray3wire.230400|230400-3wire:\
23782700Smurray	:np:nc:sp#230400:
238