Merge branch 'vendor/LIBPCAP'
[dragonfly.git] / etc / gettytab
1 # $FreeBSD: src/etc/gettytab,v 1.17.2.3 2001/09/27 08:47:55 murray Exp $
2 # $DragonFly: src/etc/gettytab,v 1.4 2008/08/31 17:37:19 swildner Exp $
3 #       from: @(#)gettytab      5.14 (Berkeley) 3/27/91
4 #
5 # Most of the table entries here are just copies of the old getty table,
6 # it is by no means certain, or even likely, that any of them are optimal
7 # for any purpose whatever.  Nor is it likely that more than a couple are
8 # even correct.
9 #
10 # The default gettytab entry, used to set defaults for all other
11 # entries, and in cases where getty is called with no table name.
12 #
13 # cb, ce and ck are desirable on most crt's.  The non-crt entries need to
14 # be changed to turn them off (:cb@:ce@:ck@:).
15 #
16 # lc should always be on; it's a remainder of some stone age when there
17 # have been terminals around not being able of handling lower-case
18 # characters. Those terminals aren't supported any longer, but getty is
19 # `smart' about them by default.
20 #
21 # Parity defaults to even, but the Pc entry and all the `std' entries
22 # specify no parity.   The different parities are:
23 #     (none): same as even except -inpck instead of inpck for login.
24 #     ep:     getty will use raw mode (cs8 -parenb) (unless rw is set) and
25 #             fake parity.  login will use even parity (cs7 parenb -parodd).
26 #     op:     same as ep except odd parity (cs7 parenb parodd) for login.
27 #             op overrides ep.
28 #     ap:     same as ep except -inpck instead of inpck for login.
29 #             ap overrides op and ep.
30 #     np:     1. don't fake parity in getty.  The fake parity garbles
31 #                characters on non-terminals (like pccons) that don't
32 #                support parity.  It would probably better for getty not to
33 #                try to fake parity.  It could just use cbreak mode so as
34 #                not to force cs8 and let the hardware handle the parity.
35 #                login has to be rely on the hardware anyway.
36 #             2. set PASS8, giving cs8 -parenb -istrip -inpck.
37 #     np:ep:  same as np except inpck.
38 #     np:op:  same as np:ep except for parodd (but parodd is overridden).
39 #     np:ap:  same as np except istrip.
40 #
41 default:\
42         :cb:ce:ck:lc:fd#1000:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200:\
43         :if=/etc/issue:
44
45 #
46 # Fixed speed entries
47 #
48 #       The "std.NNN" names are known to the special case
49 #       portselector code in getty, however they can
50 #       be assigned to any table desired.
51 #       The "NNN-baud" names are known to the special case
52 #       autobaud code in getty, and likewise can
53 #       be assigned to any table desired (hopefully the same speed).
54 #
55 a|std.110|110-baud:\
56         :np:nd#1:cd#1:uc:sp#110:
57 b|std.134|134.5-baud:\
58         :np:nd#1:cd#2:ff#1:td#1:sp#134:ht:nl:
59 1|std.150|150-baud:\
60         :np:nd#1:cd#2:td#1:fd#1:sp#150:ht:nl:lm=\E\72\6\6\17login\72 :
61 c|std.300|300-baud:\
62         :np:nd#1:cd#1:sp#300:
63 d|std.600|600-baud:\
64         :np:nd#1:cd#1:sp#600:
65 f|std.1200|1200-baud:\
66         :np:fd#1:sp#1200:
67 6|std.2400|2400-baud:\
68         :np:sp#2400:
69 7|std.4800|4800-baud:\
70         :np:sp#4800:
71 2|std.9600|9600-baud:\
72         :np:sp#9600:
73 g|std.19200|19200-baud:\
74         :np:sp#19200:
75 std.38400|38400-baud:\
76         :np:sp#38400:
77 std.57600|57600-baud:\
78         :np:sp#57600:
79 std.115200|115200-baud:\
80         :np:sp#115200:
81 std.230400|230400-baud:\
82         :np:sp#230400:
83
84 #
85 # Entry specifying explicit device settings.  See termios(4) and
86 # /usr/include/termios.h, too.  The entry forces the tty into
87 # CLOCAL mode (so no DCD is required), and uses Xon/Xoff flow control.
88 #
89 # cflags: CLOCAL | HUPCL | CREAD | CS8
90 # oflags: OPOST | ONLCR | OXTABS
91 # iflags: IXOFF | IXON | ICRNL | IGNPAR
92 # lflags: IEXTEN | ICANON | ISIG | ECHOCTL | ECHO | ECHOK | ECHOE | ECHOKE
93 #
94 # The `0' flags don't have input enabled.  The `1' flags don't echo.
95 # (Echoing is done inside getty itself.)
96 #
97 local.9600|CLOCAL tty @ 9600 Bd:\
98         :c0#0x0000c300:c1#0x0000cb00:c2#0x0000cb00:\
99         :o0#0x00000007:o1#0x00000002:o2#0x00000007:\
100         :i0#0x00000704:i1#0x00000000:i2#0x00000704:\
101         :l0#0x000005cf:l1#0x00000000:l2#0x000005cf:\
102         :sp#9600:
103
104 #
105 # Dial in rotary tables, speed selection via 'break'
106 #
107 0|d300|Dial-300:\
108         :nx=d1200:cd#2:sp#300:
109 d1200|Dial-1200:\
110         :nx=d150:fd#1:sp#1200:
111 d150|Dial-150:\
112         :nx=d110:lm@:tc=150-baud:
113 d110|Dial-110:\
114         :nx=d300:tc=300-baud:
115
116 #
117 # Fast dialup terminals, 2400/1200/300 rotary (can start either way)
118 #
119 D2400|d2400|Fast-Dial-2400:\
120         :nx=D1200:tc=2400-baud:
121 3|D1200|Fast-Dial-1200:\
122         :nx=D300:tc=1200-baud:
123 5|D300|Fast-Dial-300:\
124         :nx=D2400:tc=300-baud:
125
126 #
127 #telebit (19200)
128 #
129 t19200:\
130         :nx=t2400:tc=19200-baud:
131 t2400:\
132         :nx=t1200:tc=2400-baud:
133 t1200:\
134         :nx=t19200:tc=1200-baud:
135
136 #
137 #telebit (9600)
138 #
139 t9600:\
140         :nx=t2400a:tc=9600-baud:
141 t2400a:\
142         :nx=t1200a:tc=2400-baud:
143 t1200a:\
144         :nx=t9600:tc=1200-baud:
145
146 #
147 # Odd special case terminals
148 #
149 -|tty33|asr33|Pity the poor user of this beast:\
150         :tc=110-baud:
151
152 4|Console|Console Decwriter II:\
153         :nd@:cd@:rw:tc=300-baud:
154
155 e|Console-1200|Console Decwriter III:\
156         :fd@:nd@:cd@:rw:tc=1200-baud:
157
158 i|Interdata console:\
159         :uc:sp#0:
160
161 l|lsi chess terminal:\
162         :sp#300:
163
164 X|Xwindow|X window system:\
165         :fd@:nd@:cd@:rw:sp#9600:
166
167 P|Pc|Pc console:\
168         :ht:np:sp#115200:
169
170 #
171 # Wierdo special case for fast crt's with hardcopy devices
172 #
173 8|T9600|CRT with hardcopy:\
174         :nx=T300:tc=9600-baud:
175 9|T300|CRT with hardcopy (300):\
176         :nx=T9600:tc=300-baud:
177
178 #
179 # Plugboard, and misc other terminals
180 #
181 plug-9600|Plugboard-9600:\
182         :pf#1:tc=9600-baud:
183 p|P9600|Plugboard-9600-rotary:\
184         :pf#1:nx=P300:tc=9600-baud:
185 q|P300|Plugboard-300:\
186         :pf#1:nx=P1200:tc=300-baud:
187 r|P1200|Plugboard-1200:\
188         :pf#1:nx=P9600:tc=1200-baud:
189
190 #
191 # XXXX Port selector
192 #
193 s|DSW|Port Selector:\
194         :ps:sp#2400:
195
196 #
197 # Auto-baud speed detect entry for Micom 600.
198 # Special code in getty will switch this out
199 # to one of the NNN-baud entries.
200 #
201 A|Auto-baud:\
202         :ab:sp#2400:f0#040:
203
204 #
205 # autologin - automatically log in as root
206 #
207
208 autologin|al.9600:\
209         :al=root:tc=std.9600:
210 al.19200:\
211         :al=root:tc=std.19200:
212 al.38400:\
213         :al=root:tc=std.38400:
214 al.57600:\
215         :al=root:tc=std.57600:
216 al.115200:\
217         :al=root:tc=std.115200:
218 al.230400:\
219         :al=root:tc=std.230400:
220 al.Pc:\
221         :al=root:tc=Pc
222
223 #
224 # Entries for 3-wire serial terminals.  These don't supply carrier, so
225 # clocal needs to be set, and crtscts needs to be unset.
226 #
227 3wire.9600|9600-3wire:\
228         :np:nc:sp#9600:
229 3wire.19200|19200-3wire:\
230         :np:nc:sp#19200:
231 3wire.38400|38400-3wire:\
232         :np:nc:sp#38400:
233 3wire.57600|57600-3wire:\
234         :np:nc:sp#57600:
235 3wire.115200|115200-3wire:\
236         :np:nc:sp#115200:
237 3wire.230400|230400-3wire:\
238         :np:nc:sp#230400: