1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.35.
2 .TH STTY "1" "March 2007" "GNU coreutils 6.9" "User Commands"
4 stty \- change and print terminal line settings
7 [\fI-F DEVICE\fR] [\fI--file=DEVICE\fR] [\fISETTING\fR]...
10 [\fI-F DEVICE\fR] [\fI--file=DEVICE\fR] [\fI-a|--all\fR]
13 [\fI-F DEVICE\fR] [\fI--file=DEVICE\fR] [\fI-g|--save\fR]
15 .\" Add any additional description here
17 Print or change terminal characteristics.
19 \fB\-a\fR, \fB\-\-all\fR
20 print all current settings in human\-readable form
22 \fB\-g\fR, \fB\-\-save\fR
23 print all current settings in a stty\-readable form
25 \fB\-F\fR, \fB\-\-file\fR=\fIDEVICE\fR
26 open and use the specified DEVICE instead of stdin
29 display this help and exit
32 output version information and exit
34 Optional \- before SETTING indicates negation. An * marks non\-POSIX
35 settings. The underlying system defines which settings are available.
36 .SS "Special characters:"
39 CHAR will send a terminal stop signal once input flushed
42 CHAR will send an end of file (terminate the input)
45 CHAR will end the line
48 alternate CHAR for ending the line
51 CHAR will erase the last character typed
54 CHAR will send an interrupt signal
57 CHAR will erase the current line
60 CHAR will enter the next character quoted
63 CHAR will send a quit signal
66 CHAR will redraw the current line
69 CHAR will restart the output after stopping it
72 CHAR will stop the output
75 CHAR will send a terminal stop signal
78 CHAR will switch to a different shell layer
81 CHAR will erase the last word typed
82 .SS "Special settings:"
85 set the input and output speeds to N bauds
88 tell the kernel that the terminal has N columns
94 set the input speed to N
100 with \fB\-icanon\fR, set N characters minimum for a completed read
103 set the output speed to N
106 tell the kernel that the terminal has N rows
109 print the number of rows and columns according to the kernel
112 print the terminal speed
115 with \fB\-icanon\fR, set read timeout of N tenths of a second
116 .SS "Control settings:"
119 disable modem control signals
122 allow input to be received
125 enable RTS/CTS handshaking
128 set character size to N bits, N in [5..8]
131 use two stop bits per character (one with `\-')
134 send a hangup signal when the last process closes the tty
140 generate parity bit in output and expect parity bit in input
143 set odd parity (even with `\-')
144 .SS "Input settings:"
147 breaks cause an interrupt signal
150 translate carriage return to newline
153 ignore break characters
156 ignore carriage return
159 ignore characters with parity errors
162 beep and do not flush a full input buffer on a character
165 translate newline to carriage return
168 enable input parity checking
171 clear high (8th) bit of input characters
174 assume input characters are UTF\-8 encoded
177 translate uppercase characters to lowercase
180 let any character restart output, not only start character
183 enable sending of start/stop characters
186 enable XON/XOFF flow control
189 mark parity errors (with a 255\-0\-character sequence)
193 .SS "Output settings:"
196 backspace delay style, N in [0..1]
199 carriage return delay style, N in [0..3]
202 form feed delay style, N in [0..1]
205 newline delay style, N in [0..1]
208 translate carriage return to newline
211 use delete characters for fill instead of null characters
214 use fill (padding) characters instead of timing for delays
217 translate lowercase characters to uppercase
220 translate newline to carriage return\-newline
223 newline performs a carriage return
226 do not print carriage returns in the first column
232 horizontal tab delay style, N in [0..3]
241 vertical tab delay style, N in [0..1]
242 .SS "Local settings:"
245 echo erase characters as backspace\-space\-backspace
248 kill all line by obeying the echoprt and echoe settings
251 kill all line by obeying the echoctl and echok settings
254 echo control characters in hat notation (`^c')
257 echo input characters
266 echo a newline after a kill character
272 echo newline even if not echoing other characters
275 echo erased characters backward, between `\e' and '/'
278 enable erase, kill, werase, and rprnt special characters
281 enable non\-POSIX special characters
284 enable interrupt, quit, and suspend special characters
287 disable flushing after interrupt and quit special characters
293 stop background jobs that try to write to the terminal
296 with icanon, escape with `\e' for uppercase characters
297 .SS "Combination settings:"
303 same as \fB\-icanon\fR
309 same as brkint ignpar istrip icrnl ixon opost isig
310 icanon, eof and eol characters to their default values
316 same as echoe echoctl echoke
319 same as echoe echoctl echoke \fB\-ixany\fR intr ^c erase 0177
326 erase and kill characters to their default values
329 same as parenb \fB\-parodd\fR cs7
332 same as \fB\-parenb\fR cs8
335 same as xcase iuclc olcuc
338 same as \fB\-parenb\fR \fB\-istrip\fR \fB\-opost\fR cs8
341 same as parenb istrip opost cs7
344 same as \fB\-icrnl\fR \fB\-onlcr\fR
347 same as icrnl \fB\-inlcr\fR \fB\-igncr\fR onlcr \fB\-ocrnl\fR \fB\-onlret\fR
350 same as parenb parodd cs7
353 same as \fB\-parenb\fR cs8
359 same as \fB\-parenb\fR \fB\-istrip\fR cs8
362 same as parenb istrip cs7
365 same as \fB\-ignbrk\fR \fB\-brkint\fR \fB\-ignpar\fR \fB\-parmrk\fR \fB\-inpck\fR \fB\-istrip\fR
366 \fB\-inlcr\fR \fB\-igncr\fR \fB\-icrnl\fR \fB\-ixon\fR \fB\-ixoff\fR \fB\-iuclc\fR \fB\-ixany\fR
367 \fB\-imaxbel\fR \fB\-opost\fR \fB\-isig\fR \fB\-icanon\fR \fB\-xcase\fR min 1 time 0
373 same as cread \fB\-ignbrk\fR brkint \fB\-inlcr\fR \fB\-igncr\fR icrnl \fB\-iutf8\fR
374 \fB\-ixoff\fR \fB\-iuclc\fR \fB\-ixany\fR imaxbel opost \fB\-olcuc\fR \fB\-ocrnl\fR onlcr
375 \fB\-onocr\fR \fB\-onlret\fR \fB\-ofill\fR \fB\-ofdel\fR nl0 cr0 tab0 bs0 vt0 ff0
376 isig icanon iexten echo echoe echok \fB\-echonl\fR \fB\-noflsh\fR
377 \fB\-xcase\fR \fB\-tostop\fR \fB\-echoprt\fR echoctl echoke, all special
378 characters to their default values.
380 Handle the tty line connected to standard input. Without arguments,
381 prints baud rate, line discipline, and deviations from stty sane. In
382 settings, CHAR is taken literally, or coded as in ^c, 0x37, 0177 or
383 127; special values ^\- or undef used to disable special characters.
385 Written by David MacKenzie.
387 Report bugs to <bug\-coreutils@gnu.org>.
389 Copyright \(co 2007 Free Software Foundation, Inc.
391 This is free software. You may redistribute copies of it under the terms of
392 the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
393 There is NO WARRANTY, to the extent permitted by law.
395 The full documentation for
397 is maintained as a Texinfo manual. If the
401 programs are properly installed at your site, the command
405 should give you access to the complete manual.