.\" Copyright (c) 1983 Regents of the University of California.
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\" @(#)stty.1 6.2 (Berkeley) %G%
stty \- set terminal options
sets certain I/O options on the current output terminal,
placing its output on the diagnostic output.
With no argument, it reports the speed of the terminal and the
settings of the options which are different from their defaults.
With the argument ``all'', all normally used option settings are reported.
With the argument ``everything'', everything
selected from the following set:
disallow even parity input
disallow odd parity input
(\fBno\fR input processing (erase, kill, interrupt, ...); parity bit passed back)
make each character available to
as received; no erase and kill processing,
but all other processing (interrupt, suspend, ...) is performed
make characters available to
only when newline is received
allow carriage return for new-line,
and output CR-LF for carriage return or new-line
accept only new-line to end lines
echo back every character typed
map upper case to lower case
enable flow control, so that the system sends out the stop character when
its internal queue is in danger of overflowing on input, and sends the
start character when it is ready to accept further input
replace tabs by spaces when printing
set erase and kill characters to # and @
For the following commands which take a character argument \fIc\fR,
you may also specify \fIc\fR as the ``u'' or ``undef'', to set the value
to be undefined. A value of ``^x'', a 2 character sequence, is also
interpreted as a control character, with ``^?'' representing delete.
(default `#', but often reset to ^H.)
(default `@', but often reset to ^U.)
set interrupt character to
(default DEL or ^? (delete), but often reset to ^C.)
set end of file character to
This character is an extra wakeup causing character.
select style of delay for carriage return (see
select style of delay for linefeed
select style of delay for tab
select style of delay for form feed
select style of delay for backspace
set all modes suitable for the
Teletype Corporation Model 33 terminal.
set all modes suitable for the
Teletype Corporation Model 37 terminal.
set all modes suitable for Digital Equipment Corp. VT05 terminal
set all modes suitable for Digital Equipment Corp. operating systems
users; (erase, kill, and interrupt characters to ^?, ^U, and ^C,
set all modes suitable for a General Electric TermiNet 300
set all modes suitable for Texas Instruments 700 series terminal
set all modes suitable for Tektronix 4014 terminal
hang up phone line immediately
.B "50 75 110 134 150 200 300 600 1200 1800 2400 4800 9600 exta extb"
Set terminal baud rate to the number given, if possible.
(These are the speeds supported by the DH-11 interface).
A teletype driver which supports the job control processing of
and more functionality than the basic driver is fully described in
The following options apply only to it.
Use new driver (switching flushes typeahead).
Set options for a CRT (crtbs, ctlecho and, if >= 1200 baud,
Echo backspaces on erase characters.
For printing terminal echo erased characters backwards within ``\e'' and ``/''.
Wipe out erased characters with ``backspace-space-backspace.''
Leave erased characters visible; just backspace.
Wipe out input on like kill ala
Just echo line kill character and a newline on line kill.
Echo control characters as ``^\fIx\fR'' (and delete as ``^?''.)
Print two backspaces following the EOT character (control D).
Control characters echo as themselves; in cooked mode EOT (control-D)
After output is suspended (normally by ^S), only a start character
(normally ^Q) will restart it. This is compatible with DEC's vendor
After output is suspended, any character typed will restart it;
the start character will restart output without providing any input.
Background jobs stop if they attempt terminal output.
Output from background jobs to the terminal is allowed.
Convert ``~'' to ``\`'' on output (for Hazeltine terminals).
Output is being discarded usually because user hit control O (internal state bit).
Output is not being discarded.
Input is pending after a switch from cbreak to cooked
and will be re-input when a read becomes pending or more input arrives
Passes all 8 bits through on input, in any mode.
Strips the 0200 bit on input except in raw mode.
Start/stop output on carrier transitions (not implemented).
Return error if write attempted after carrier drops.
Send output characters without any processing.
Do normal output processing, inserting delays, etc.
Don't send hangup signal if carrier drops.
Send hangup signal to control process group when carrier drops.
Diablo style etx/ack handshaking (not implemented).
The following special characters are applicable only to the new
and are not normally changed.
set suspend process character to \fIc\fR (default control Z).
set delayed suspend process character to \fIc\fR (default control Y).
set reprint line character to \fIc\fR (default control R).
set flush output character to \fIc\fR (default control O).
set word erase character to \fIc\fR (default control W).
set literal next character to \fIc\fR (default control V).
ioctl(2), tabs(1), tset(1), tty(4)