gettytab revision 61513
150472Speter# $FreeBSD: head/etc/gettytab 61513 2000-06-10 19:49:16Z phk $
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:
22646Sdg#     (none): same as even except -inpck instead of inpck for login.
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.
26646Sdg#             op overrides ep.
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.
35646Sdg#             2. set PASS8, giving cs8 -parenb -istrip -inpck.
36646Sdg#     np:ep:  same as np except inpck.
37646Sdg#     np:op:  same as np:ep except for parodd (but parodd is overridden).
38646Sdg#     np:ap:  same as np except istrip.
39646Sdg#
4037Srgrimesdefault:\
4136017Sphk	:cb:ce:ck:lc:fd#1000:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200:
4237Srgrimes
4337Srgrimes#
4437Srgrimes# Fixed speed entries
4537Srgrimes#
4637Srgrimes#	The "std.NNN" names are known to the special case
4737Srgrimes#	portselector code in getty, however they can
4837Srgrimes#	be assigned to any table desired.
4937Srgrimes#	The "NNN-baud" names are known to the special case
5037Srgrimes#	autobaud code in getty, and likewise can
5137Srgrimes#	be assigned to any table desired (hopefully the same speed).
5237Srgrimes#
5337Srgrimesa|std.110|110-baud:\
54862Sache	:np:nd#1:cd#1:uc:sp#110:
5537Srgrimesb|std.134|134.5-baud:\
56862Sache	:np:nd#1:cd#2:ff#1:td#1:sp#134:ht:nl:
5737Srgrimes1|std.150|150-baud:\
58862Sache	:np:nd#1:cd#2:td#1:fd#1:sp#150:ht:nl:lm=\E\72\6\6\17login\72 :
5937Srgrimesc|std.300|300-baud:\
60862Sache	:np:nd#1:cd#1:sp#300:
6137Srgrimesd|std.600|600-baud:\
62862Sache	:np:nd#1:cd#1:sp#600:
6337Srgrimesf|std.1200|1200-baud:\
64862Sache	:np:fd#1:sp#1200:
6537Srgrimes6|std.2400|2400-baud:\
66862Sache	:np:sp#2400:
6737Srgrimes7|std.4800|4800-baud:\
68862Sache	:np:sp#4800:
6937Srgrimes2|std.9600|9600-baud:\
70862Sache	:np:sp#9600:
7137Srgrimesg|std.19200|19200-baud:\
72862Sache	:np:sp#19200:
73154Srgrimesstd.38400|38400-baud:\
74862Sache	:np:sp#38400:
75154Srgrimesstd.57600|57600-baud:\
76862Sache	:np:sp#57600:
77154Srgrimesstd.115200|115200-baud:\
78862Sache	:np:sp#115200:
7937818Sphkstd.230400|230400-baud:\
8037818Sphk	:np:sp#230400:
8137Srgrimes
8237Srgrimes#
8329610Sjoerg# Entry specifying explicit device settings.  See termios(4) and
8429610Sjoerg# /usr/include/termios.h, too.  The entry forces the tty into
8529610Sjoerg# CLOCAL mode (so no DCD is required), and uses Xon/Xoff flow control.
8629610Sjoerg#
8729610Sjoerg# cflags: CLOCAL | HUPCL | CREAD | CS8
8829610Sjoerg# oflags: OPOST | ONLCR | OXTABS
8929610Sjoerg# iflags: IXOFF | IXON | ICRNL | IGNPAR
9029610Sjoerg# lflags: IEXTEN | ICANON | ISIG | ECHOCTL | ECHO | ECHOK | ECHOE | ECHOKE
9129610Sjoerg#
9229610Sjoerg# The `0' flags don't have input enabled.  The `1' flags don't echo.
9329610Sjoerg# (Echoing is done inside getty itself.)
9429610Sjoerg#
9529610Sjoerglocal.9600|CLOCAL tty @ 9600 Bd:\
9629610Sjoerg	:c0#0x0000c300:c1#0x0000cb00:c2#0x0000cb00:\
9729610Sjoerg	:o0#0x00000007:o1#0x00000002:o2#0x00000007:\
9829610Sjoerg	:i0#0x00000704:i1#0x00000000:i2#0x00000704:\
9929610Sjoerg	:l0#0x000005cf:l1#0x00000000:l2#0x000005cf:\
10029610Sjoerg	:sp#9600:
10129610Sjoerg
10229610Sjoerg#
10337Srgrimes# Dial in rotary tables, speed selection via 'break'
10437Srgrimes#
10537Srgrimes0|d300|Dial-300:\
10637Srgrimes	:nx=d1200:cd#2:sp#300:
10737Srgrimesd1200|Dial-1200:\
10837Srgrimes	:nx=d150:fd#1:sp#1200:
10937Srgrimesd150|Dial-150:\
11037Srgrimes	:nx=d110:lm@:tc=150-baud:
11137Srgrimesd110|Dial-110:\
11237Srgrimes	:nx=d300:tc=300-baud:
11337Srgrimes
11437Srgrimes#
11537Srgrimes# Fast dialup terminals, 2400/1200/300 rotary (can start either way)
11637Srgrimes#
11737SrgrimesD2400|d2400|Fast-Dial-2400:\
11837Srgrimes	:nx=D1200:tc=2400-baud:
11937Srgrimes3|D1200|Fast-Dial-1200:\
12037Srgrimes	:nx=D300:tc=1200-baud:
12137Srgrimes5|D300|Fast-Dial-300:\
12237Srgrimes	:nx=D2400:tc=300-baud:
12337Srgrimes
12437Srgrimes#
12537Srgrimes#telebit (19200)
12637Srgrimes#
12737Srgrimest19200:\
12837Srgrimes	:nx=t2400:tc=19200-baud:
12937Srgrimest2400:\
13037Srgrimes	:nx=t1200:tc=2400-baud:
13137Srgrimest1200:\
13237Srgrimes	:nx=t19200:tc=1200-baud:
13337Srgrimes
13437Srgrimes#
13537Srgrimes#telebit (9600)
13637Srgrimes#
13737Srgrimest9600:\
138289Srgrimes	:nx=t2400a:tc=9600-baud:
13937Srgrimest2400a:\
14037Srgrimes	:nx=t1200a:tc=2400-baud:
14137Srgrimest1200a:\
14237Srgrimes	:nx=t9600:tc=1200-baud:
14337Srgrimes
14437Srgrimes#
14537Srgrimes# Odd special case terminals
14637Srgrimes#
14737Srgrimes-|tty33|asr33|Pity the poor user of this beast:\
14837Srgrimes	:tc=110-baud:
14937Srgrimes
15037Srgrimes4|Console|Console Decwriter II:\
15137Srgrimes	:nd@:cd@:rw:tc=300-baud:
15237Srgrimes
15337Srgrimese|Console-1200|Console Decwriter III:\
15437Srgrimes	:fd@:nd@:cd@:rw:tc=1200-baud:
15537Srgrimes
15637Srgrimesi|Interdata console:\
15737Srgrimes	:uc:sp#0:
15837Srgrimes
15937Srgrimesl|lsi chess terminal:\
16037Srgrimes	:sp#300:
16137Srgrimes
16237SrgrimesX|Xwindow|X window system:\
16337Srgrimes	:fd@:nd@:cd@:rw:sp#9600:
16437Srgrimes
16537SrgrimesP|Pc|Pc console:\
1661096Sache	:ht:np:sp#115200:
16737Srgrimes
16837Srgrimes#
16937Srgrimes# Wierdo special case for fast crt's with hardcopy devices
17037Srgrimes#
17137Srgrimes8|T9600|CRT with hardcopy:\
17237Srgrimes	:nx=T300:tc=9600-baud:
17337Srgrimes9|T300|CRT with hardcopy (300):\
17437Srgrimes	:nx=T9600:tc=300-baud:
17537Srgrimes
17637Srgrimes#
17737Srgrimes# Plugboard, and misc other terminals
17837Srgrimes#
17937Srgrimesplug-9600|Plugboard-9600:\
18037Srgrimes	:pf#1:tc=9600-baud:
18137Srgrimesp|P9600|Plugboard-9600-rotary:\
18237Srgrimes	:pf#1:nx=P300:tc=9600-baud:
18337Srgrimesq|P300|Plugboard-300:\
18437Srgrimes	:pf#1:nx=P1200:tc=300-baud:
18537Srgrimesr|P1200|Plugboard-1200:\
18637Srgrimes	:pf#1:nx=P9600:tc=1200-baud:
18737Srgrimes
18837Srgrimes#
18937Srgrimes# XXXX Port selector
19037Srgrimes#
19137Srgrimess|DSW|Port Selector:\
19237Srgrimes	:ps:sp#2400:
19337Srgrimes
19437Srgrimes#
19537Srgrimes# Auto-baud speed detect entry for Micom 600.
19637Srgrimes# Special code in getty will switch this out
19737Srgrimes# to one of the NNN-baud entries.
19837Srgrimes#
19937SrgrimesA|Auto-baud:\
20037Srgrimes	:ab:sp#2400:f0#040:
20161513Sphk
20261513Sphk#
20361513Sphk# autologin - automatically log in as root
20461513Sphk#
20561513Sphk
20661513Sphkautologin|al.9600:\
20761513Sphk	:al=root:tc=std.9600:
208