gettytab revision 198229
155682Smarkm# $FreeBSD: head/etc/gettytab 198229 2009-10-19 11:10:44Z ed $ 2178825Sdfr# from: @(#)gettytab 5.14 (Berkeley) 3/27/91 355682Smarkm# 455682Smarkm# Most of the table entries here are just copies of the old getty table, 555682Smarkm# it is by no means certain, or even likely, that any of them are optimal 655682Smarkm# for any purpose whatever. Nor is it likely that more than a couple are 755682Smarkm# even correct. 855682Smarkm# 955682Smarkm# The default gettytab entry, used to set defaults for all other 1055682Smarkm# entries, and in cases where getty is called with no table name. 1155682Smarkm# 1255682Smarkm# cb, ce and ck are desirable on most crt's. The non-crt entries need to 1355682Smarkm# be changed to turn them off (:cb@:ce@:ck@:). 1455682Smarkm# 1555682Smarkm# lc should always be on; it's a remainder of some stone age when there 1655682Smarkm# have been terminals around not being able of handling lower-case 1755682Smarkm# characters. Those terminals aren't supported any longer, but getty is 1855682Smarkm# `smart' about them by default. 1955682Smarkm# 2055682Smarkm# Parity defaults to even, but the Pc entry and all the `std' entries 2155682Smarkm# specify no parity. The different parities are: 2255682Smarkm# (none): same as ep for getty. login will use terminal as is. 2355682Smarkm# ep: getty will use raw mode (cs8 -parenb) (unless rw is set) and 2455682Smarkm# fake parity. login will use even parity (cs7 parenb -parodd). 2555682Smarkm# op: same as ep except odd parity (cs7 parenb parodd) for login. 2655682Smarkm# getty will fake odd parity as well. 2755682Smarkm# ap: same as ep except -inpck instead of inpck for login. 2855682Smarkm# ap overrides op and ep. 2955682Smarkm# np: 1. don't fake parity in getty. The fake parity garbles 3055682Smarkm# characters on non-terminals (like pccons) that don't 3155682Smarkm# support parity. It would probably better for getty not to 3255682Smarkm# try to fake parity. It could just use cbreak mode so as 3355682Smarkm# not to force cs8 and let the hardware handle the parity. 3455682Smarkm# login has to be rely on the hardware anyway. 3555682Smarkm# 2. set cs8 -parenb -istrip -inpck. 36178825Sdfr# ep:op: same as ap. 3755682Smarkm# 38178825Sdfrdefault:\ 39178825Sdfr :cb:ce:ck:lc:fd#1000:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200:\ 40178825Sdfr :if=/etc/issue: 41178825Sdfr 42178825Sdfr# 43178825Sdfr# Fixed speed entries 44178825Sdfr# 45178825Sdfr# The "std.NNN" names are known to the special case 46178825Sdfr# portselector code in getty, however they can 47178825Sdfr# be assigned to any table desired. 4855682Smarkm# The "NNN-baud" names are known to the special case 49178825Sdfr# autobaud code in getty, and likewise can 5055682Smarkm# be assigned to any table desired (hopefully the same speed). 5155682Smarkm# 5278527Sassara|std.110|110-baud:\ 5355682Smarkm :np:nd#1:cd#1:uc:sp#110: 54178825Sdfrb|std.134|134.5-baud:\ 5555682Smarkm :np:nd#1:cd#2:ff#1:td#1:sp#134:ht:nl: 5655682Smarkm1|std.150|150-baud:\ 5790926Snectar :np:nd#1:cd#2:td#1:fd#1:sp#150:ht:nl:lm=\E\72\6\6\17login\72 : 5878527Sassarc|std.300|300-baud:\ 5978527Sassar :np:nd#1:cd#1:sp#300: 6078527Sassard|std.600|600-baud:\ 61178825Sdfr :np:nd#1:cd#1:sp#600: 62178825Sdfrf|std.1200|1200-baud:\ 6378527Sassar :np:fd#1:sp#1200: 64178825Sdfr6|std.2400|2400-baud:\ 6555682Smarkm :np:sp#2400: 66178825Sdfr7|std.4800|4800-baud:\ 6755682Smarkm :np:sp#4800: 68178825Sdfr2|std.9600|9600-baud:\ 6978527Sassar :np:sp#9600: 7055682Smarkmg|std.19200|19200-baud:\ 71178825Sdfr :np:sp#19200: 72178825Sdfrstd.38400|38400-baud:\ 73178825Sdfr :np:sp#38400: 7478527Sassarstd.57600|57600-baud:\ 75178825Sdfr :np:sp#57600: 76178825Sdfrstd.115200|115200-baud:\ 7755682Smarkm :np:sp#115200: 78178825Sdfrstd.230400|230400-baud:\ 7955682Smarkm :np:sp#230400: 8055682Smarkm 81178825Sdfr# 8255682Smarkm# Entry specifying explicit device settings. See termios(4) and 8355682Smarkm# /usr/include/termios.h, too. The entry forces the tty into 84178825Sdfr# CLOCAL mode (so no DCD is required), and uses Xon/Xoff flow control. 8578527Sassar# 8655682Smarkm# cflags: CLOCAL | HUPCL | CREAD | CS8 8755682Smarkm# oflags: OPOST | ONLCR | OXTABS 88178825Sdfr# iflags: IXOFF | IXON | ICRNL | IGNPAR 89178825Sdfr# lflags: IEXTEN | ICANON | ISIG | ECHOCTL | ECHO | ECHOK | ECHOE | ECHOKE 90178825Sdfr# 9178527Sassar# The `0' flags don't have input enabled. The `1' flags don't echo. 92178825Sdfr# (Echoing is done inside getty itself.) 93178825Sdfr# 94178825Sdfrlocal.9600|CLOCAL tty @ 9600 Bd:\ 9555682Smarkm :c0#0x0000c300:c1#0x0000cb00:c2#0x0000cb00:\ 96178825Sdfr :o0#0x00000007:o1#0x00000002:o2#0x00000007:\ 97178825Sdfr :i0#0x00000704:i1#0x00000000:i2#0x00000704:\ 98178825Sdfr :l0#0x000005cf:l1#0x00000000:l2#0x000005cf:\ 9978527Sassar :sp#9600: 100178825Sdfr 101178825Sdfr# 10255682Smarkm# Dial in rotary tables, speed selection via 'break' 103178825Sdfr# 104178825Sdfr0|d300|Dial-300:\ 105178825Sdfr :nx=d1200:cd#2:sp#300: 106178825Sdfrd1200|Dial-1200:\ 107178825Sdfr :nx=d150:fd#1:sp#1200: 108178825Sdfrd150|Dial-150:\ 109178825Sdfr :nx=d110:lm@:tc=150-baud: 110178825Sdfrd110|Dial-110:\ 111178825Sdfr :nx=d300:tc=300-baud: 112178825Sdfr 113178825Sdfr# 114178825Sdfr# Fast dialup terminals, 2400/1200/300 rotary (can start either way) 115178825Sdfr# 116178825SdfrD2400|d2400|Fast-Dial-2400:\ 117178825Sdfr :nx=D1200:tc=2400-baud: 118178825Sdfr3|D1200|Fast-Dial-1200:\ 119178825Sdfr :nx=D300:tc=1200-baud: 120178825Sdfr5|D300|Fast-Dial-300:\ 121178825Sdfr :nx=D2400:tc=300-baud: 122178825Sdfr 123178825Sdfr# 124178825Sdfr#telebit (19200) 125178825Sdfr# 12655682Smarkmt19200:\ 12755682Smarkm :nx=t2400:tc=19200-baud: 12855682Smarkmt2400:\ 12955682Smarkm :nx=t1200:tc=2400-baud: 13055682Smarkmt1200:\ 13155682Smarkm :nx=t19200:tc=1200-baud: 132178825Sdfr 133178825Sdfr# 134178825Sdfr#telebit (9600) 135178825Sdfr# 13655682Smarkmt9600:\ 137178825Sdfr :nx=t2400a:tc=9600-baud: 138178825Sdfrt2400a:\ 13955682Smarkm :nx=t1200a:tc=2400-baud: 140178825Sdfrt1200a:\ 14155682Smarkm :nx=t9600:tc=1200-baud: 142178825Sdfr 14355682Smarkm# 144178825Sdfr# Odd special case terminals 145178825Sdfr# 146178825Sdfr-|tty33|asr33|Pity the poor user of this beast:\ 147178825Sdfr :tc=110-baud: 148178825Sdfr 14955682Smarkm4|Console|Console Decwriter II:\ 15055682Smarkm :nd@:cd@:rw:tc=300-baud: 15155682Smarkm 15255682Smarkme|Console-1200|Console Decwriter III:\ 15378527Sassar :fd@:nd@:cd@:rw:tc=1200-baud: 15455682Smarkm 15578527Sassari|Interdata console:\ 156178825Sdfr :uc:sp#0: 15755682Smarkm 158l|lsi chess terminal:\ 159 :sp#300: 160 161X|Xwindow|X window system:\ 162 :fd@:nd@:cd@:rw:sp#9600: 163 164P|Pc|Pc console:\ 165 :ht:np:sp#9600: 166 167# 168# Wierdo special case for fast crt's with hardcopy devices 169# 1708|T9600|CRT with hardcopy:\ 171 :nx=T300:tc=9600-baud: 1729|T300|CRT with hardcopy (300):\ 173 :nx=T9600:tc=300-baud: 174 175# 176# Plugboard, and misc other terminals 177# 178plug-9600|Plugboard-9600:\ 179 :pf#1:tc=9600-baud: 180p|P9600|Plugboard-9600-rotary:\ 181 :pf#1:nx=P300:tc=9600-baud: 182q|P300|Plugboard-300:\ 183 :pf#1:nx=P1200:tc=300-baud: 184r|P1200|Plugboard-1200:\ 185 :pf#1:nx=P9600:tc=1200-baud: 186 187# 188# XXXX Port selector 189# 190s|DSW|Port Selector:\ 191 :ps:sp#2400: 192 193# 194# Auto-baud speed detect entry for Micom 600. 195# Special code in getty will switch this out 196# to one of the NNN-baud entries. 197# 198A|Auto-baud:\ 199 :ab:sp#2400:f0#040: 200 201# 202# autologin - automatically log in as root 203# 204 205autologin|al.9600:\ 206 :al=root:tc=std.9600: 207al.19200:\ 208 :al=root:tc=std.19200: 209al.38400:\ 210 :al=root:tc=std.38400: 211al.57600:\ 212 :al=root:tc=std.57600: 213al.115200:\ 214 :al=root:tc=std.115200: 215al.230400:\ 216 :al=root:tc=std.230400: 217 218# 219# Entries for 3-wire serial terminals. These don't supply carrier, so 220# clocal needs to be set, and crtscts needs to be unset. 221# 2223wire.9600|9600-3wire:\ 223 :np:nc:sp#9600: 2243wire.19200|19200-3wire:\ 225 :np:nc:sp#19200: 2263wire.38400|38400-3wire:\ 227 :np:nc:sp#38400: 2283wire.57600|57600-3wire:\ 229 :np:nc:sp#57600: 2303wire.115200|115200-3wire:\ 231 :np:nc:sp#115200: 2323wire.230400|230400-3wire:\ 233 :np:nc:sp#230400: 234