BSD 3 development
[unix-history] / usr / man / man1 / stty.1
CommitLineData
d2681696
BJ
1.TH STTY 1 11/13/79
2.UC
3.SH NAME
4stty \- set terminal options
5.SH SYNOPSIS
6.B stty
7[ option ... ]
8.SH DESCRIPTION
9.I Stty
10sets certain I/O options on the current output terminal.
11With no argument, it reports the current settings of the options.
12The option strings are
13selected from the following set:
14.TP 8n
15.B even
16allow even parity
17.br
18.ns
19.TP
20.B \-even
21disallow even parity
22.br
23.ns
24.TP
25.B odd
26allow odd parity
27.br
28.ns
29.TP
30.B \-odd
31disallow odd parity
32.br
33.ns
34.TP
35.B raw
36raw mode input
37(no erase, kill, interrupt, quit, EOT; parity bit passed back)
38.br
39.ns
40.TP
41.B \-raw
42negate raw mode
43.br
44.ns
45.TP
46.B cooked
47same as `\-raw'
48.br
49.ns
50.TP
51.B cbreak
52make each character available to
53.IR read (2)
54as received; no erase and kill
55.br
56.ns
57.TP
58.B \-cbreak
59make characters available to
60.I read
61only when newline is received
62.br
63.ns
64.TP
65.B \-nl
66allow carriage return for new-line,
67and output CR-LF for carriage return or new-line
68.br
69.ns
70.TP
71.B nl
72accept only new-line to end lines
73.br
74.ns
75.TP
76.B echo
77echo back every character typed
78.br
79.ns
80.TP
81.B \-echo
82do not echo characters
83.br
84.ns
85.TP
86.B lcase
87map upper case to lower case
88.br
89.ns
90.TP
91.B \-lcase
92do not map case
93.br
94.ns
95.TP
96.B \-tabs
97replace tabs by spaces when printing
98.br
99.ns
100.TP
101.B tabs
102preserve tabs
103.br
104.ns
105.TP
106.B ek
107reset erase and kill characters back to normal # and @
108.br
109.ns
110.TP
111.BI erase \ c\fR
112set erase character to
113.I c
114(default `#'.)
115.br
116.ns
117.TP
118.BI kill \ c\fR
119set kill character to
120.I c
121(default `@'.)
122.br
123.ns
124.TP
125.BI intr \ c\fR
126set interrupt character to
127.I c
128(default DEL.)
129.br
130.ns
131.TP
132.BI quit \ c\fR
133set quit character to
134.I c
135(default control \e.)
136.br
137.ns
138.TP
139.BI start \ c\fR
140set start character to
141.I c
142(default control Q.)
143.br
144.ns
145.TP
146.BI stop \ c\fR
147set stop character to
148.I c
149(default control S.)
150.br
151.ns
152.TP
153.BI eof \ c\fR
154set end of file character to
155.I c
156(default control D.)
157.br
158.ns
159.TP
160.BI brk \ c\fR
161set break character to
162.I c
163(default undefined.)
164This character is an extra wakeup causing character.
165.br
166.ns
167.TP
168.B cr0 cr1 cr2 cr3
169.br
170select style of delay for carriage return (see
171.IR ioctl (2))
172.br
173.ns
174.TP
175.B nl0 nl1 nl2 nl3
176.br
177select style of delay for linefeed
178.br
179.ns
180.TP
181.B tab0 tab1 tab2 tab3
182.br
183select style of delay for tab
184.br
185.ns
186.TP
187.B ff0 ff1
188select style of delay for form feed
189.br
190.ns
191.TP
192.B bs0 bs1
193select style of delay for backspace
194.br
195.ns
196.TP
197.B tty33
198set all modes suitable for the
199Teletype Corporation Model 33 terminal.
200.br
201.ns
202.TP
203.B tty37
204set all modes suitable for the
205Teletype Corporation Model 37 terminal.
206.br
207.ns
208.TP
209.B vt05
210set all modes suitable for Digital Equipment Corp. VT05 terminal
211.br
212.ns
213.TP
214.B tn300
215set all modes suitable for a General Electric TermiNet 300
216.br
217.ns
218.TP
219.B ti700
220set all modes suitable for Texas Instruments 700 series terminal
221.br
222.ns
223.TP
224.B tek
225set all modes suitable for Tektronix 4014 terminal
226.br
227.ns
228.TP
229.B hup
230hang up dataphone on last close.
231.br
232.ns
233.TP
234.B \-hup
235do not hang up dataphone on last close.
236.br
237.ns
238.TP
239.B 0
240hang up phone line immediately
241.br
242.ns
243.TP
244.B "50 75 110 134 150 200 300 600 1200 1800 2400 4800 9600 exta extb"
245.br
246Set terminal baud rate to the number given, if possible.
247(These are the speeds supported by the DH-11 interface).
248.dt
249.SH "SEE ALSO"
250ioctl(2), tabs(1), tset(1), stty(1)