4.3BSD-Tahoe/usr/man/cat1/stty.0
STTY(1) UNIX Programmer's Manual STTY(1)
NNAAMMEE
stty - set terminal options
SSYYNNOOPPSSIISS
ssttttyy [ option ... ]
DDEESSCCRRIIPPTTIIOONN
_S_t_t_y sets certain I/O options on the current output termi-
nal, placing its output on the diagnostic output. With no
argument, it reports the speed of the terminal and the set-
tings of the options which are different from their
defaults. Use of one of the following options modifies the
output as described:
aallll All normally used option settings are reported.
eevveerryytthhiinngg
Everything _s_t_t_y knows about is printed.
ssppeeeedd The terminal speed alone is printed on the stan-
dard output.
ssiizzee The terminal (window) sizes are printed on the
standard output, first rows and then columns.
The option strings are selected from the following
set:
eevveenn allow even parity input
--eevveenn disallow even parity input
oodddd allow odd parity input
--oodddd disallow odd parity input
rraaww raw mode input (nnoo input processing (erase, kill,
interrupt, ...); parity bit passed back)
--rraaww negate raw mode
ccooookkeedd same as `-raw'
ccbbrreeaakk make each character available to _r_e_a_d(2) as
received; no erase and kill processing, but all
other processing (interrupt, suspend, ...) is per-
formed
--ccbbrreeaakk make characters available to _r_e_a_d only when new-
line is received
--nnll allow carriage return for new-line, and output
CR-LF for carriage return or new-line
nnll accept only new-line to end lines
eecchhoo echo back every character typed
--eecchhoo do not echo characters
llccaassee map upper case to lower case
--llccaassee do not map case
ttaannddeemm 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
Printed 7/9/88 May 5, 1986 1
STTY(1) UNIX Programmer's Manual STTY(1)
start character when it is ready to accept further
input
--ttaannddeemm disable flow control
--ttaabbss replace tabs by spaces when printing
ttaabbss preserve tabs
eekk set erase and kill characters to # and @
For the following commands which take a character argument
_c, you may also specify _c 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.
eerraassee _c set erase character to _c (default `#', but often
reset to ^H.)
kkiillll _c set kill character to _c (default `@', but often
reset to ^U.)
iinnttrr _c set interrupt character to _c (default DEL or ^?
(delete), but often reset to ^C.)
qquuiitt _c set quit character to _c (default control \.)
ssttaarrtt _c set start character to _c (default control Q.)
ssttoopp _c set stop character to _c (default control S.)
eeooff _c set end of file character to _c (default control
D.)
bbrrkk _c set break character to _c (default undefined.) This
character is an additional character causing
wakeup.
ccrr00 ccrr11 ccrr22 ccrr33
select style of delay for carriage return (see
_i_o_c_t_l(2))
nnll00 nnll11 nnll22 nnll33
select style of delay for linefeed
ttaabb00 ttaabb11 ttaabb22 ttaabb33
select style of delay for tab
ffff00 ffff11 select style of delay for form feed
bbss00 bbss11 select style of delay for backspace
ttttyy3333 set all modes suitable for the Teletype Corpora-
tion Model 33 terminal.
ttttyy3377 set all modes suitable for the Teletype Corpora-
tion Model 37 terminal.
vvtt0055 set all modes suitable for Digital Equipment Corp.
VT05 terminal
ddeecc set all modes suitable for Digital Equipment Corp.
operating systems users; (erase, kill, and inter-
rupt characters to ^?, ^U, and ^C, decctlq and
``newcrt''.)
ttnn330000 set all modes suitable for a General Electric Ter-
miNet 300
ttii770000 set all modes suitable for Texas Instruments 700
series terminal
tteekk set all modes suitable for Tektronix 4014 terminal
Printed 7/9/88 May 5, 1986 2
STTY(1) UNIX Programmer's Manual STTY(1)
00 hang up phone line immediately
5500 7755 111100 113344 115500 220000 330000 660000 11220000 11880000 22440000 44880000 99660000 eexxttaa eexxttbb
Set terminal baud rate to the number given, if
possible. (These are the speeds supported by the
DH-11 interface).
rroowwss _n The terminal size is recorded as having _n rows.
ccoolluummnnss _n The terminal size is recorded as having _n columns.
ccoollss _n is an alias for _c_o_l_u_m_n_s.
A teletype driver which supports the job control processing
of _c_s_h(1) and more functionality than the basic driver is
fully described in _t_t_y(4). The following options apply only
to it.
nneeww Use new driver (switching flushes typeahead).
ccrrtt Set options for a CRT (crtbs, ctlecho and, if >=
1200 baud, crterase and crtkill.)
ccrrttbbss Echo backspaces on erase characters.
pprrtteerraassee For printing terminal echo erased characters back-
wards within ``\'' and ``/''.
ccrrtteerraassee Wipe out erased characters with ``backspace-
space-backspace.''
--ccrrtteerraassee Leave erased characters visible; just backspace.
ccrrttkkiillll Wipe out input on like kill ala ccrrtteerraassee..
--ccrrttkkiillll Just echo line kill character and a newline on
line kill.
ccttlleecchhoo Echo control characters as ``^_x'' (and delete as
``^?''.) Print two backspaces following the EOT
character (control D).
--ccttlleecchhoo Control characters echo as themselves; in cooked
mode EOT (control-D) is not echoed.
ddeeccccttllqq After output is suspended (normally by ^S), only a
start character (normally ^Q) will restart it.
This is compatible with DEC's vendor supplied sys-
tems.
--ddeeccccttllqq After output is suspended, any character typed
will restart it; the start character will restart
output without providing any input. (This is the
default.)
ttoossttoopp Background jobs stop if they attempt terminal out-
put.
--ttoossttoopp Output from background jobs to the terminal is
allowed.
ttiillddee Convert ``~'' to ```'' on output (for Hazeltine
terminals).
--ttiillddee Leave poor ``~'' alone.
fflluusshhoo Output is being discarded usually because user hit
Printed 7/9/88 May 5, 1986 3
STTY(1) UNIX Programmer's Manual STTY(1)
control O (internal state bit).
--fflluusshhoo Output is not being discarded.
ppeennddiinn Input is pending after a switch from cbreak to
cooked and will be re-input when a read becomes
pending or more input arrives (internal state
bit).
--ppeennddiinn Input is not pending.
ppaassss88 Passes all 8 bits through on input, in any mode.
--ppaassss88 Strips the 0200 bit on input except in raw mode.
mmddmmbbuuff Start/stop output on carrier transitions (not
implemented).
--mmddmmbbuuff Return error if write attempted after carrier
drops.
lliittoouutt Send output characters without any processing.
--lliittoouutt Do normal output processing, inserting delays,
etc.
nnoohhaanngg Don't send hangup signal if carrier drops.
--nnoohhaanngg Send hangup signal to control process group when
carrier drops.
eettxxaacckk Diablo style etx/ack handshaking (not imple-
mented).
The following special characters are applicable only to the
new teletype driver and are not normally changed.
ssuusspp _c set suspend process character to _c (default con-
trol Z).
ddssuusspp _c set delayed suspend process character to _c
(default control Y).
rrpprrnntt _c set reprint line character to _c (default control
R).
fflluusshh _c set flush output character to _c (default control
O).
wweerraassee _c set word erase character to _c (default control W).
llnneexxtt _c set literal next character to _c (default control
V).
SSEEEE AALLSSOO
ioctl(2), tabs(1), tset(1), tty(4)
Printed 7/9/88 May 5, 1986 4