gettytab revision 157658
10Sduke# $FreeBSD: head/etc/gettytab 157658 2006-04-11 09:54:23Z des $
29889Sigerasim#	from: @(#)gettytab	5.14 (Berkeley) 3/27/91
30Sduke#
40Sduke# Most of the table entries here are just copies of the old getty table,
50Sduke# it is by no means certain, or even likely, that any of them are optimal
60Sduke# for any purpose whatever.  Nor is it likely that more than a couple are
70Sduke# even correct.
80Sduke#
90Sduke# The default gettytab entry, used to set defaults for all other
100Sduke# entries, and in cases where getty is called with no table name.
110Sduke#
120Sduke# cb, ce and ck are desirable on most crt's.  The non-crt entries need to
130Sduke# be changed to turn them off (:cb@:ce@:ck@:).
140Sduke#
150Sduke# lc should always be on; it's a remainder of some stone age when there
160Sduke# have been terminals around not being able of handling lower-case
170Sduke# characters. Those terminals aren't supported any longer, but getty is
180Sduke# `smart' about them by default.
192362Sohair#
202362Sohair# Parity defaults to even, but the Pc entry and all the `std' entries
212362Sohair# specify no parity.   The different parities are:
220Sduke#     (none): same as ep for getty.  login will use terminal as is.
230Sduke#     ep:     getty will use raw mode (cs8 -parenb) (unless rw is set) and
240Sduke#             fake parity.  login will use even parity (cs7 parenb -parodd).
250Sduke#     op:     same as ep except odd parity (cs7 parenb parodd) for login.
269889Sigerasim#             getty will fake odd parity as well.
270Sduke#     ap:     same as ep except -inpck instead of inpck for login.
280Sduke#             ap overrides op and ep.
2910003Sigerasim#     np:     1. don't fake parity in getty.  The fake parity garbles
3011822Sdarcy#                characters on non-terminals (like pccons) that don't
310Sduke#                support parity.  It would probably better for getty not to
320Sduke#                try to fake parity.  It could just use cbreak mode so as
330Sduke#                not to force cs8 and let the hardware handle the parity.
340Sduke#                login has to be rely on the hardware anyway.
350Sduke#             2. set cs8 -parenb -istrip -inpck.
360Sduke#     ep:op:  same as ap.
370Sduke#
380Sdukedefault:\
390Sduke	:cb:ce:ck:lc:fd#1000:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200:\
400Sduke	:if=/etc/issue:
410Sduke
420Sduke#
430Sduke# Fixed speed entries
440Sduke#
450Sduke#	The "std.NNN" names are known to the special case
460Sduke#	portselector code in getty, however they can
470Sduke#	be assigned to any table desired.
480Sduke#	The "NNN-baud" names are known to the special case
490Sduke#	autobaud code in getty, and likewise can
500Sduke#	be assigned to any table desired (hopefully the same speed).
510Sduke#
520Sdukea|std.110|110-baud:\
530Sduke	:np:nd#1:cd#1:uc:sp#110:
540Sdukeb|std.134|134.5-baud:\
550Sduke	:np:nd#1:cd#2:ff#1:td#1:sp#134:ht:nl:
560Sduke1|std.150|150-baud:\
570Sduke	:np:nd#1:cd#2:td#1:fd#1:sp#150:ht:nl:lm=\E\72\6\6\17login\72 :
580Sdukec|std.300|300-baud:\
590Sduke	:np:nd#1:cd#1:sp#300:
600Sduked|std.600|600-baud:\
610Sduke	:np:nd#1:cd#1:sp#600:
620Sdukef|std.1200|1200-baud:\
630Sduke	:np:fd#1:sp#1200:
640Sduke6|std.2400|2400-baud:\
650Sduke	:np:sp#2400:
660Sduke7|std.4800|4800-baud:\
670Sduke	:np:sp#4800:
680Sduke2|std.9600|9600-baud:\
690Sduke	:np:sp#9600:
700Sdukeg|std.19200|19200-baud:\
710Sduke	:np:sp#19200:
720Sdukestd.38400|38400-baud:\
730Sduke	:np:sp#38400:
740Sdukestd.57600|57600-baud:\
750Sduke	:np:sp#57600:
760Sdukestd.115200|115200-baud:\
770Sduke	:np:sp#115200:
780Sdukestd.230400|230400-baud:\
790Sduke	:np:sp#230400:
800Sduke
810Sduke#
820Sduke# Entry specifying explicit device settings.  See termios(4) and
830Sduke# /usr/include/termios.h, too.  The entry forces the tty into
840Sduke# CLOCAL mode (so no DCD is required), and uses Xon/Xoff flow control.
850Sduke#
860Sduke# cflags: CLOCAL | HUPCL | CREAD | CS8
870Sduke# oflags: OPOST | ONLCR | OXTABS
880Sduke# iflags: IXOFF | IXON | ICRNL | IGNPAR
890Sduke# lflags: IEXTEN | ICANON | ISIG | ECHOCTL | ECHO | ECHOK | ECHOE | ECHOKE
900Sduke#
910Sduke# The `0' flags don't have input enabled.  The `1' flags don't echo.
920Sduke# (Echoing is done inside getty itself.)
930Sduke#
940Sdukelocal.9600|CLOCAL tty @ 9600 Bd:\
950Sduke	:c0#0x0000c300:c1#0x0000cb00:c2#0x0000cb00:\
960Sduke	:o0#0x00000007:o1#0x00000002:o2#0x00000007:\
970Sduke	:i0#0x00000704:i1#0x00000000:i2#0x00000704:\
980Sduke	:l0#0x000005cf:l1#0x00000000:l2#0x000005cf:\
990Sduke	:sp#9600:
1000Sduke
1010Sduke#
1020Sduke# Dial in rotary tables, speed selection via 'break'
1030Sduke#
1040Sduke0|d300|Dial-300:\
1050Sduke	:nx=d1200:cd#2:sp#300:
1060Sduked1200|Dial-1200:\
1070Sduke	:nx=d150:fd#1:sp#1200:
1080Sduked150|Dial-150:\
1090Sduke	:nx=d110:lm@:tc=150-baud:
1100Sduked110|Dial-110:\
1110Sduke	:nx=d300:tc=300-baud:
1120Sduke
1130Sduke#
1140Sduke# Fast dialup terminals, 2400/1200/300 rotary (can start either way)
1150Sduke#
1160SdukeD2400|d2400|Fast-Dial-2400:\
1170Sduke	:nx=D1200:tc=2400-baud:
1180Sduke3|D1200|Fast-Dial-1200:\
1190Sduke	:nx=D300:tc=1200-baud:
1200Sduke5|D300|Fast-Dial-300:\
1210Sduke	:nx=D2400:tc=300-baud:
1220Sduke
1230Sduke#
1240Sduke#telebit (19200)
1250Sduke#
1260Sduket19200:\
1270Sduke	:nx=t2400:tc=19200-baud:
1280Sduket2400:\
1290Sduke	:nx=t1200:tc=2400-baud:
1300Sduket1200:\
1310Sduke	:nx=t19200:tc=1200-baud:
1320Sduke
1330Sduke#
1340Sduke#telebit (9600)
1350Sduke#
1360Sduket9600:\
1370Sduke	:nx=t2400a:tc=9600-baud:
1380Sduket2400a:\
1390Sduke	:nx=t1200a:tc=2400-baud:
1400Sduket1200a:\
1410Sduke	:nx=t9600:tc=1200-baud:
1420Sduke
1430Sduke#
1440Sduke# Odd special case terminals
1450Sduke#
1460Sduke-|tty33|asr33|Pity the poor user of this beast:\
1470Sduke	:tc=110-baud:
1480Sduke
1490Sduke4|Console|Console Decwriter II:\
1500Sduke	:nd@:cd@:rw:tc=300-baud:
1510Sduke
1520Sdukee|Console-1200|Console Decwriter III:\
1530Sduke	:fd@:nd@:cd@:rw:tc=1200-baud:
1540Sduke
1550Sdukei|Interdata console:\
1560Sduke	:uc:sp#0:
1570Sduke
1580Sdukel|lsi chess terminal:\
1590Sduke	:sp#300:
1600Sduke
1610SdukeX|Xwindow|X window system:\
1620Sduke	:fd@:nd@:cd@:rw:sp#9600:
1630Sduke
1640SdukeP|Pc|Pc console:\
1650Sduke	:ht:np:sp#115200:
1660Sduke
1670Sduke#
1680Sduke# Wierdo special case for fast crt's with hardcopy devices
1690Sduke#
1700Sduke8|T9600|CRT with hardcopy:\
1710Sduke	:nx=T300:tc=9600-baud:
1720Sduke9|T300|CRT with hardcopy (300):\
1730Sduke	:nx=T9600:tc=300-baud:
1740Sduke
1750Sduke#
1760Sduke# Plugboard, and misc other terminals
1770Sduke#
1780Sdukeplug-9600|Plugboard-9600:\
1790Sduke	:pf#1:tc=9600-baud:
1800Sdukep|P9600|Plugboard-9600-rotary:\
1810Sduke	:pf#1:nx=P300:tc=9600-baud:
1820Sdukeq|P300|Plugboard-300:\
1830Sduke	:pf#1:nx=P1200:tc=300-baud:
1840Sduker|P1200|Plugboard-1200:\
1850Sduke	:pf#1:nx=P9600:tc=1200-baud:
1860Sduke
1870Sduke#
1880Sduke# XXXX Port selector
1890Sduke#
1900Sdukes|DSW|Port Selector:\
1910Sduke	:ps:sp#2400:
1920Sduke
1930Sduke#
1940Sduke# Auto-baud speed detect entry for Micom 600.
1950Sduke# Special code in getty will switch this out
1960Sduke# to one of the NNN-baud entries.
1970Sduke#
1980SdukeA|Auto-baud:\
1990Sduke	:ab:sp#2400:f0#040:
2000Sduke
2010Sduke#
2020Sduke# autologin - automatically log in as root
2030Sduke#
2040Sduke
2050Sdukeautologin|al.9600:\
2060Sduke	:al=root:tc=std.9600:
2070Sdukeal.19200:\
2080Sduke	:al=root:tc=std.19200:
2090Sdukeal.38400:\
2100Sduke	:al=root:tc=std.38400:
2110Sdukeal.57600:\
2120Sduke	:al=root:tc=std.57600:
2130Sdukeal.115200:\
2140Sduke	:al=root:tc=std.115200:
2150Sdukeal.230400:\
2160Sduke	:al=root:tc=std.230400:
2170Sduke
2180Sduke#
2190Sduke# Entries for 3-wire serial terminals.  These don't supply carrier, so
2200Sduke# clocal needs to be set, and crtscts needs to be unset.
2210Sduke#
2220Sduke3wire.9600|9600-3wire:\
2230Sduke	:np:nc:sp#9600:
2240Sduke3wire.19200|19200-3wire:\
2250Sduke	:np:nc:sp#19200:
2260Sduke3wire.38400|38400-3wire:\
2270Sduke	:np:nc:sp#38400:
2280Sduke3wire.57600|57600-3wire:\
2290Sduke	:np:nc:sp#57600:
2300Sduke3wire.115200|115200-3wire:\
2310Sduke	:np:nc:sp#115200:
2320Sduke3wire.230400|230400-3wire:\
2330Sduke	:np:nc:sp#230400:
2340Sduke