gettytab revision 283972
1168054Sflz# $FreeBSD: stable/10/etc/gettytab 283972 2015-06-04 01:52:17Z ian $
2168054Sflz#	from: @(#)gettytab	5.14 (Berkeley) 3/27/91
3168266Sgabor#
4168266Sgabor# Most of the table entries here are just copies of the old getty table,
5168266Sgabor# it is by no means certain, or even likely, that any of them are optimal
6168266Sgabor# for any purpose whatever.  Nor is it likely that more than a couple are
7168266Sgabor# even correct.
8168266Sgabor#
9168266Sgabor# The default gettytab entry, used to set defaults for all other
10168266Sgabor# entries, and in cases where getty is called with no table name.
11168054Sflz#
12168054Sflz# cb, ce and ck are desirable on most crt's.  The non-crt entries need to
13168064Sflz# be changed to turn them off (:cb@:ce@:ck@:).
14168064Sflz#
15168064Sflz# lc should always be on; it's a remainder of some stone age when there
16168064Sflz# have been terminals around not being able of handling lower-case
17168064Sflz# characters. Those terminals aren't supported any longer, but getty is
18168064Sflz# `smart' about them by default.
19168064Sflz#
20168064Sflz# Parity defaults to even, but the Pc entry and all the `std' entries
21168064Sflz# specify no parity.   The different parities are:
22168064Sflz#     (none): same as ep for getty.  login will use terminal as is.
23168064Sflz#     ep:     getty will use raw mode (cs8 -parenb) (unless rw is set) and
24168064Sflz#             fake parity.  login will use even parity (cs7 parenb -parodd).
25168064Sflz#     op:     same as ep except odd parity (cs7 parenb parodd) for login.
26168064Sflz#             getty will fake odd parity as well.
27168054Sflz#     ap:     same as ep except -inpck instead of inpck for login.
28168054Sflz#             ap overrides op and ep.
29168064Sflz#     np:     1. don't fake parity in getty.  The fake parity garbles
30168054Sflz#                characters on non-terminals (like pccons) that don't
31168188Sgabor#                support parity.  It would probably better for getty not to
32168357Syar#                try to fake parity.  It could just use cbreak mode so as
33168673Sjulian#                not to force cs8 and let the hardware handle the parity.
34168188Sgabor#                login has to be rely on the hardware anyway.
35168263Sru#             2. set cs8 -parenb -istrip -inpck.
36168194Simp#     ep:op:  same as ap.
37168357Syar#
38168188Sgabordefault:\
39168188Sgabor	:cb:ce:ck:lc:fd#1000:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200:\
40168188Sgabor	:if=/etc/issue:
41168188Sgabor
42168188Sgabor#
43168188Sgabor# Fixed speed entries
44168188Sgabor#
45168202Sume#	The "std.NNN" names are known to the special case
46168188Sgabor#	portselector code in getty, however they can
47168188Sgabor#	be assigned to any table desired.
48168202Sume#	The "NNN-baud" names are known to the special case
49168188Sgabor#	autobaud code in getty, and likewise can
50168127Sdwmalone#	be assigned to any table desired (hopefully the same speed).
51168054Sflz#
52168054Sflzstd:\
53168054Sflz	:np:sp#0:
54168054Sflza|std.110|110-baud:\
55168215Sache	:np:nd#1:cd#1:uc:sp#110:
56168149Simpb|std.134|134.5-baud:\
57168149Simp	:np:nd#1:cd#2:ff#1:td#1:sp#134:ht:nl:
58168179Sgabor1|std.150|150-baud:\
59168083Sjkim	:np:nd#1:cd#2:td#1:fd#1:sp#150:ht:nl:lm=\E\72\6\6\17login\72 :
60176001Santoinec|std.300|300-baud:\
61168123Snetchild	:np:nd#1:cd#1:sp#300:
62168080Smlaierd|std.600|600-baud:\
63168195Sbenno	:np:nd#1:cd#1:sp#600:
64168131Sbmahf|std.1200|1200-baud:\
65168183Sgabor	:np:fd#1:sp#1200:
66168080Smlaier6|std.2400|2400-baud:\
67168309Sbrian	:np:sp#2400:
68168308Sbrian7|std.4800|4800-baud:\
69168150Srwatson	:np:sp#4800:
70168149Simp2|std.9600|9600-baud:\
71168150Srwatson	:np:sp#9600:
72168263Srug|std.19200|19200-baud:\
73168054Sflz	:np:sp#19200:
74168183Sgaborstd.38400|38400-baud:\
75168674Sjulian	:np:sp#38400:
76168060Sddsstd.57600|57600-baud:\
77168108Srafan	:np:sp#57600:
78168083Sjkimstd.115200|115200-baud:\
79168153Simp	:np:sp#115200:
80168080Smlaierstd.230400|230400-baud:\
81168149Simp	:np:sp#230400:
82168127Sdwmalone
83179207Sed#
84175201Sedwin# Entry specifying explicit device settings.  See termios(4) and
85168263Sru# /usr/include/termios.h, too.  The entry forces the tty into
86168180Srwatson# CLOCAL mode (so no DCD is required), and uses Xon/Xoff flow control.
87168149Simp#
88168127Sdwmalone# cflags: CLOCAL | HUPCL | CREAD | CS8
89169252Sfjoe# oflags: OPOST | ONLCR | OXTABS
90168054Sflz# iflags: IXOFF | IXON | ICRNL | IGNPAR
91168370Sgad# lflags: IEXTEN | ICANON | ISIG | ECHOCTL | ECHO | ECHOK | ECHOE | ECHOKE
92168631Sticso#
93168183Sgabor# The `0' flags don't have input enabled.  The `1' flags don't echo.
94168672Smav# (Echoing is done inside getty itself.)
95168150Srwatson#
96168195Sbennolocal.9600|CLOCAL tty @ 9600 Bd:\
97168081Sle	:c0#0x0000c300:c1#0x0000cb00:c2#0x0000cb00:\
98168154Sgshapiro	:o0#0x00000007:o1#0x00000002:o2#0x00000007:\
99168127Sdwmalone	:i0#0x00000704:i1#0x00000000:i2#0x00000704:\
100168144Simp	:l0#0x000005cf:l1#0x00000000:l2#0x000005cf:\
101179767Sivoras	:sp#9600:np:
102168308Sbrian
103168183Sgabor#
104168150Srwatson# Dial in rotary tables, speed selection via 'break'
105169252Sfjoe#
106168153Simp0|d300|Dial-300:\
107168083Sjkim	:nx=d1200:cd#2:sp#300:
108172389Skaiwd1200|Dial-1200:\
109168111Smatteo	:nx=d150:fd#1:sp#1200:
110168149Simpd150|Dial-150:\
111168151Sphk	:nx=d110:lm@:tc=150-baud:
112168149Simpd110|Dial-110:\
113168673Sjulian	:nx=d300:tc=300-baud:
114172389Skaiw
115168180Srwatson#
116168535Skevlo# Fast dialup terminals, 2400/1200/300 rotary (can start either way)
117168150Srwatson#
118168081SleD2400|d2400|Fast-Dial-2400:\
119168180Srwatson	:nx=D1200:tc=2400-baud:
120172984Slulf3|D1200|Fast-Dial-1200:\
121168167Sphilip	:nx=D300:tc=1200-baud:
122168918Sbrueffer5|D300|Fast-Dial-300:\
123168142Srwatson	:nx=D2400:tc=300-baud:
124168672Smav
125168263Sru#
126168143Smjacob#telebit (19200)
127168080Smlaier#
128168149Simpt19200:\
129168130Sdelphij	:nx=t2400:tc=19200-baud:
130168123Snetchildt2400:\
131168171Sphilip	:nx=t1200:tc=2400-baud:
132168097Slet1200:\
133176318Solli	:nx=t19200:tc=1200-baud:
134168149Simp
135168127Sdwmalone#
136168183Sgabor#telebit (9600)
137168111Smatteo#
138168151Sphkt9600:\
139168321Spjd	:nx=t2400a:tc=9600-baud:
140168183Sgabort2400a:\
141168101Sandre	:nx=t1200a:tc=2400-baud:
142168108Srafant1200a:\
143168149Simp	:nx=t9600:tc=1200-baud:
144168149Simp
145168149Simp#
146172343Srpaulo# Odd special case terminals
147168140Srwatson#
148168118Srse-|tty33|asr33|Pity the poor user of this beast:\
149168263Sru	:tc=110-baud:
150168140Srwatson
151168080Smlaier4|Console|Console Decwriter II:\
152168149Simp	:nd@:cd@:rw:tc=300-baud:
153171026Sscf
154168081Slee|Console-1200|Console Decwriter III:\
155168167Sphilip	:fd@:nd@:cd@:rw:tc=1200-baud:
156168149Simp
157168115Ssimoni|Interdata console:\
158168263Sru	:uc:sp#0:
159168198Sume
160168150Srwatsonl|lsi chess terminal:\
161168149Simp	:sp#300:
162168080Smlaier
163168631SticsoX|Xwindow|X window system:\
164168180Srwatson	:fd@:nd@:cd@:rw:sp#9600:
165168198Sume
166175039SweongyoP|Pc|Pc console:\
167168271Swes	:ht:np:sp#9600:
168168141Swilko
169168180Srwatson#
170168356Syar# Weirdo special case for fast crt's with hardcopy devices
171168238Syongari#
172168054Sflz8|T9600|CRT with hardcopy:\
173168151Sphk	:nx=T300:tc=9600-baud:
174168151Sphk9|T300|CRT with hardcopy (300):\
175168151Sphk	:nx=T9600:tc=300-baud:
176168054Sflz
177168064Sflz#
178168064Sflz# Plugboard, and misc other terminals
179168054Sflz#
180168151Sphkplug-9600|Plugboard-9600:\
181168151Sphk	:pf#1:tc=9600-baud:
182168151Sphkp|P9600|Plugboard-9600-rotary:\
183168151Sphk	:pf#1:nx=P300:tc=9600-baud:
184168151Sphkq|P300|Plugboard-300:\
185168151Sphk	:pf#1:nx=P1200:tc=300-baud:
186168151Sphkr|P1200|Plugboard-1200:\
187168101Sandre	:pf#1:nx=P9600:tc=1200-baud:
188168101Sandre
189168083Sjkim#
190168083Sjkim# XXXX Port selector
191168195Sbenno#
192168195Sbennos|DSW|Port Selector:\
193168152Srwatson	:ps:sp#2400:
194168152Srwatson
195168152Srwatson#
196168152Srwatson# Auto-baud speed detect entry for Micom 600.
197168152Srwatson# Special code in getty will switch this out
198168152Srwatson# to one of the NNN-baud entries.
199168152Srwatson#
200168152SrwatsonA|Auto-baud:\
201168352Sru	:ab:sp#2400:f0#040:
202168080Smlaier
203168080Smlaier#
204168080Smlaier# autologin - automatically log in as root
205168309Sbrian#
206168309Sbrian
207168152Srwatsonautologin|al.9600:\
208168152Srwatson	:al=root:tc=std.9600:
209168140Srwatsonal.19200:\
210168140Srwatson	:al=root:tc=std.19200:
211168101Sandreal.38400:\
212168115Ssimon	:al=root:tc=std.38400:
213168101Sandreal.57600:\
214168152Srwatson	:al=root:tc=std.57600:
215168152Srwatsonal.115200:\
216168108Srafan	:al=root:tc=std.115200:
217168108Srafanal.230400:\
218168083Sjkim	:al=root:tc=std.230400:
219168147Sdes
220168147Sdes#
221176318Solli# Entries for 3-wire serial terminals.  These don't supply carrier, so
222168263Sru# clocal needs to be set, and crtscts needs to be unset.
223168083Sjkim#
224168352Sru3wire:\
225168352Sru	:np:nc:sp#0:
226168352Sru3wire.9600|9600-3wire:\
227168147Sdes	:np:nc:sp#9600:
228168140Srwatson3wire.19200|19200-3wire:\
229168140Srwatson	:np:nc:sp#19200:
230168918Sbrueffer3wire.38400|38400-3wire:\
231168918Sbrueffer	:np:nc:sp#38400:
232168631Sticso3wire.57600|57600-3wire:\
233168631Sticso	:np:nc:sp#57600:
234168352Sru3wire.115200|115200-3wire:\
235168352Sru	:np:nc:sp#115200:
236168127Sdwmalone3wire.230400|230400-3wire:\
237168672Smav	:np:nc:sp#230400:
238168672Smav