gettytab revision 198229
10SN/A# $FreeBSD: head/etc/gettytab 198229 2009-10-19 11:10:44Z ed $ 22362SN/A# from: @(#)gettytab 5.14 (Berkeley) 3/27/91 30SN/A# 40SN/A# Most of the table entries here are just copies of the old getty table, 50SN/A# it is by no means certain, or even likely, that any of them are optimal 60SN/A# for any purpose whatever. Nor is it likely that more than a couple are 72362SN/A# even correct. 80SN/A# 92362SN/A# The default gettytab entry, used to set defaults for all other 100SN/A# entries, and in cases where getty is called with no table name. 110SN/A# 120SN/A# cb, ce and ck are desirable on most crt's. The non-crt entries need to 130SN/A# be changed to turn them off (:cb@:ce@:ck@:). 140SN/A# 150SN/A# lc should always be on; it's a remainder of some stone age when there 160SN/A# have been terminals around not being able of handling lower-case 170SN/A# characters. Those terminals aren't supported any longer, but getty is 180SN/A# `smart' about them by default. 190SN/A# 200SN/A# Parity defaults to even, but the Pc entry and all the `std' entries 212362SN/A# specify no parity. The different parities are: 222362SN/A# (none): same as ep for getty. login will use terminal as is. 232362SN/A# ep: getty will use raw mode (cs8 -parenb) (unless rw is set) and 240SN/A# fake parity. login will use even parity (cs7 parenb -parodd). 250SN/A# op: same as ep except odd parity (cs7 parenb parodd) for login. 260SN/A# getty will fake odd parity as well. 270SN/A# ap: same as ep except -inpck instead of inpck for login. 280SN/A# ap overrides op and ep. 290SN/A# np: 1. don't fake parity in getty. The fake parity garbles 300SN/A# characters on non-terminals (like pccons) that don't 310SN/A# support parity. It would probably better for getty not to 320SN/A# try to fake parity. It could just use cbreak mode so as 330SN/A# not to force cs8 and let the hardware handle the parity. 340SN/A# login has to be rely on the hardware anyway. 350SN/A# 2. set cs8 -parenb -istrip -inpck. 360SN/A# ep:op: same as ap. 370SN/A# 380SN/Adefault:\ 390SN/A :cb:ce:ck:lc:fd#1000:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200:\ 400SN/A :if=/etc/issue: 410SN/A 420SN/A# 430SN/A# Fixed speed entries 440SN/A# 450SN/A# The "std.NNN" names are known to the special case 460SN/A# portselector code in getty, however they can 470SN/A# be assigned to any table desired. 480SN/A# The "NNN-baud" names are known to the special case 490SN/A# autobaud code in getty, and likewise can 500SN/A# be assigned to any table desired (hopefully the same speed). 510SN/A# 520SN/Aa|std.110|110-baud:\ 530SN/A :np:nd#1:cd#1:uc:sp#110: 540SN/Ab|std.134|134.5-baud:\ 550SN/A :np:nd#1:cd#2:ff#1:td#1:sp#134:ht:nl: 560SN/A1|std.150|150-baud:\ 570SN/A :np:nd#1:cd#2:td#1:fd#1:sp#150:ht:nl:lm=\E\72\6\6\17login\72 : 580SN/Ac|std.300|300-baud:\ 590SN/A :np:nd#1:cd#1:sp#300: 600SN/Ad|std.600|600-baud:\ 610SN/A :np:nd#1:cd#1:sp#600: 620SN/Af|std.1200|1200-baud:\ 630SN/A :np:fd#1:sp#1200: 640SN/A6|std.2400|2400-baud:\ 650SN/A :np:sp#2400: 660SN/A7|std.4800|4800-baud:\ 670SN/A :np:sp#4800: 6810425SN/A2|std.9600|9600-baud:\ 690SN/A :np:sp#9600: 700SN/Ag|std.19200|19200-baud:\ 710SN/A :np:sp#19200: 720SN/Astd.38400|38400-baud:\ 730SN/A :np:sp#38400: 740SN/Astd.57600|57600-baud:\ 750SN/A :np:sp#57600: 760SN/Astd.115200|115200-baud:\ 770SN/A :np:sp#115200: 780SN/Astd.230400|230400-baud:\ 790SN/A :np:sp#230400: 800SN/A 810SN/A# 820SN/A# Entry specifying explicit device settings. See termios(4) and 830SN/A# /usr/include/termios.h, too. The entry forces the tty into 840SN/A# CLOCAL mode (so no DCD is required), and uses Xon/Xoff flow control. 850SN/A# 860SN/A# cflags: CLOCAL | HUPCL | CREAD | CS8 870SN/A# oflags: OPOST | ONLCR | OXTABS 880SN/A# iflags: IXOFF | IXON | ICRNL | IGNPAR 890SN/A# lflags: IEXTEN | ICANON | ISIG | ECHOCTL | ECHO | ECHOK | ECHOE | ECHOKE 900SN/A# 910SN/A# The `0' flags don't have input enabled. The `1' flags don't echo. 920SN/A# (Echoing is done inside getty itself.) 930SN/A# 940SN/Alocal.9600|CLOCAL tty @ 9600 Bd:\ 950SN/A :c0#0x0000c300:c1#0x0000cb00:c2#0x0000cb00:\ 960SN/A :o0#0x00000007:o1#0x00000002:o2#0x00000007:\ 970SN/A :i0#0x00000704:i1#0x00000000:i2#0x00000704:\ 980SN/A :l0#0x000005cf:l1#0x00000000:l2#0x000005cf:\ 990SN/A :sp#9600: 1000SN/A 1010SN/A# 1020SN/A# Dial in rotary tables, speed selection via 'break' 1030SN/A# 1040SN/A0|d300|Dial-300:\ 1050SN/A :nx=d1200:cd#2:sp#300: 1060SN/Ad1200|Dial-1200:\ 1070SN/A :nx=d150:fd#1:sp#1200: 1080SN/Ad150|Dial-150:\ 1090SN/A :nx=d110:lm@:tc=150-baud: 1100SN/Ad110|Dial-110:\ 1110SN/A :nx=d300:tc=300-baud: 1120SN/A 1130SN/A# 1140SN/A# Fast dialup terminals, 2400/1200/300 rotary (can start either way) 1150SN/A# 1160SN/AD2400|d2400|Fast-Dial-2400:\ 1170SN/A :nx=D1200:tc=2400-baud: 1180SN/A3|D1200|Fast-Dial-1200:\ 1190SN/A :nx=D300:tc=1200-baud: 1200SN/A5|D300|Fast-Dial-300:\ 1210SN/A :nx=D2400:tc=300-baud: 1220SN/A 1230SN/A# 1240SN/A#telebit (19200) 1250SN/A# 1260SN/At19200:\ 1270SN/A :nx=t2400:tc=19200-baud: 1280SN/At2400:\ 1290SN/A :nx=t1200:tc=2400-baud: 1300SN/At1200:\ 1310SN/A :nx=t19200:tc=1200-baud: 1320SN/A 1330SN/A# 1340SN/A#telebit (9600) 1350SN/A# 1360SN/At9600:\ 1370SN/A :nx=t2400a:tc=9600-baud: 1380SN/At2400a:\ 1390SN/A :nx=t1200a:tc=2400-baud: 1400SN/At1200a:\ 1410SN/A :nx=t9600:tc=1200-baud: 14210294SN/A 1430SN/A# 1440SN/A# Odd special case terminals 1450SN/A# 1460SN/A-|tty33|asr33|Pity the poor user of this beast:\ 147 :tc=110-baud: 148 1494|Console|Console Decwriter II:\ 150 :nd@:cd@:rw:tc=300-baud: 151 152e|Console-1200|Console Decwriter III:\ 153 :fd@:nd@:cd@:rw:tc=1200-baud: 154 155i|Interdata console:\ 156 :uc:sp#0: 157 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