466 lines
8.3 KiB
Groff
466 lines
8.3 KiB
Groff
.TH STTY 1 "19 March 1984"
|
|
.\" @(#)stty.1 1.1 92/07/30 SMI; from UCB 4.1
|
|
.SH NAME
|
|
stty \- set terminal options
|
|
.SH SYNOPSIS
|
|
.B stty
|
|
[ option ... ]
|
|
.SH DESCRIPTION
|
|
.IX "stty command get" "" "\fLstty\fP \(em get terminal options"
|
|
.IX "get terminal options" "" "get terminal options \(em \fLstty\fP"
|
|
.IX terminal "get options" "" "get options \(em \fLstty\fP"
|
|
.IX "stty command set" "" "\fLstty\fP \(em set terminal options"
|
|
.IX "set terminal options" "" "set terminal options \(em \fLstty\fP"
|
|
.IX terminal "set options" "" "set options \(em \fLstty\fP"
|
|
.IX tty stty "" "\fLstty\fP \(em set terminal options"
|
|
.I stty
|
|
sets certain I/O options on the current output terminal,
|
|
and directs its output to the diagnostic output.
|
|
With no argument, it reports the speed of the terminal and the
|
|
settings of options which are different from their defaults.
|
|
With the argument ``all'', all normally-used option settings are reported.
|
|
With the argument ``everything'', everything
|
|
.I stty
|
|
knows about is printed.
|
|
.SH OPTIONS
|
|
Options to \fIstty\fP are selected from the following set:
|
|
.TP 10
|
|
.B even
|
|
allow even parity input
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B \-even
|
|
disallow even parity input
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B odd
|
|
allow odd parity input
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B \-odd
|
|
disallow odd parity input
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B raw
|
|
raw mode input
|
|
(\fBno\fR input processing (erase, kill, interrupt, ...); parity bit
|
|
passed back)
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B \-raw
|
|
negate raw mode
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B cooked
|
|
same as `\-raw'
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B cbreak
|
|
make each character available to
|
|
.IR read (2)
|
|
as received; no erase and kill processing,
|
|
but all other processing (interrupt, suspend, ...) is performed
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B \-cbreak
|
|
make characters available to
|
|
.I read
|
|
only when newline is received
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B \-nl
|
|
allow carriage return for new-line,
|
|
and output CR-LF for carriage return or new-line
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B nl
|
|
accept only new-line to end lines
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B echo
|
|
echo back every character typed
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B \-echo
|
|
do not echo characters
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B lcase
|
|
map upper case to lower case
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B \-lcase
|
|
do not map case
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B tandem
|
|
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
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B \-tandem
|
|
disable flow control
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B \-tabs
|
|
replace tabs by spaces when printing
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B tabs
|
|
preserve tabs
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B ek
|
|
set erase and kill characters to ^H (control-H) and ^U
|
|
.PP
|
|
For the following commands which take a character argument \fIc\fR,
|
|
you may also specify \fIc\fR as ``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.
|
|
.TP 10
|
|
.BI erase \ c\fR
|
|
set erase character to
|
|
.I c
|
|
(default `^?').
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.BI kill \ c\fR
|
|
set kill character to
|
|
.I c
|
|
(default `^U').
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.BI intr \ c\fR
|
|
set interrupt character to
|
|
.I c
|
|
(default `^C').
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.BI quit \ c\fR
|
|
set quit character to
|
|
.I c
|
|
(default `^\e').
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.BI start \ c\fR
|
|
set start character to
|
|
.I c
|
|
(default `^Q').
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.BI stop \ c\fR
|
|
set stop character to
|
|
.I c
|
|
(default `^S').
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.BI eof \ c\fR
|
|
set end of file character to
|
|
.I c
|
|
(default `^D').
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.BI brk \ c\fR
|
|
set break character to
|
|
.I c
|
|
(default undefined.)
|
|
This character is an extra wakeup causing character.
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B cr0 cr1 cr2 cr3
|
|
.br
|
|
select style of delay for carriage return (see
|
|
.IR ioctl (2))
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B nl0 nl1 nl2 nl3
|
|
.br
|
|
select style of delay for linefeed
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B tab0 tab1 tab2 tab3
|
|
.br
|
|
select style of delay for tab
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B ff0 ff1
|
|
select style of delay for form feed
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B bs0 bs1
|
|
select style of delay for backspace
|
|
.br
|
|
.TP 10
|
|
.B tty33
|
|
set all modes suitable for the
|
|
Teletype Corporation Model 33 terminal.
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B tty37
|
|
set all modes suitable for the
|
|
Teletype Corporation Model 37 terminal.
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B vt05
|
|
set all modes suitable for Digital Equipment Corp. VT05 terminal
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B dec
|
|
set all modes suitable for Digital Equipment Corp. operating systems
|
|
users; (erase, kill, and interrupt characters to ^?, ^U, and ^C,
|
|
decctlq and ``newcrt''.)
|
|
.ns
|
|
.TP 10
|
|
.B tn300
|
|
set all modes suitable for a General Electric TermiNet 300
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B ti700
|
|
set all modes suitable for Texas Instruments 700 series terminal
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B tek
|
|
set all modes suitable for Tektronix 4014 terminal
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B 0
|
|
hang up phone line immediately
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B "50 75 110 134 150 200 300 600 1200 1800 2400 4800 9600 19200 exta extb"
|
|
.br
|
|
Set terminal baud rate to the number given, if possible.
|
|
(These are the speeds supported by the DH-11 interface).
|
|
.PP
|
|
The driver which supports the job control processing of
|
|
.IR csh (1)
|
|
is fully described in
|
|
.IR tty (4).
|
|
The options in the list below can only be selected by using the \fBnew\fP
|
|
option to
|
|
.IR stty (1).
|
|
.TP 10
|
|
.B new
|
|
Use new driver (switching flushes typeahead).
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B crt
|
|
Set options for a CRT (crtbs, ctlecho and, if >= 1200 baud,
|
|
crterase and crtkill.)
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B crtbs
|
|
Echo backspaces on erase characters.
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B prterase
|
|
For printing terminal echo erased characters backwards within ``\e'' and ``/''.
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B crterase
|
|
Wipe out erased characters with ``backspace-space-backspace.''
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B \-crterase
|
|
Leave erased characters visible; just backspace.
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B crtkill
|
|
Wipe out input on like kill ala
|
|
.B crterase.
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B \-crtkill
|
|
Just echo line kill character and a newline on line kill.
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B ctlecho
|
|
Echo control characters as ``^\fIx\fR'' (and delete as ``^?''.)
|
|
Print two backspaces following the EOT character (default `^D').
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B \-ctlecho
|
|
Control characters echo as themselves; in cooked mode EOT (default `^D')
|
|
is not echoed.
|
|
.TP 10
|
|
.B decctlq
|
|
After output is suspended (normally by ^S), only a start character
|
|
(normally ^Q) will restart it. This is compatible with DEC's vendor
|
|
supplied systems.
|
|
.TP 10
|
|
.B \-decctlq
|
|
After output is suspended, any character typed will restart it;
|
|
the start character will restart output without providing any input.
|
|
(This is the default.)
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B tostop
|
|
Background jobs stop if they attempt terminal output.
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B \-tostop
|
|
Output from background jobs to the terminal is allowed.
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B tilde
|
|
Convert ``~'' to ``\`'' on output (for Hazeltine terminals).
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B \-tilde
|
|
Leave poor ``~'' alone.
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B flusho
|
|
Output is being discarded usually because user hit `^O' (internal state bit).
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B \-flusho
|
|
Output is not being discarded.
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B pendin
|
|
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).
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B \-pendin
|
|
Input is not pending.
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B intrup
|
|
Send a signal (SIGTINT) to the terminal control process group whenever
|
|
an input record (line in cooked mode, character in cbreak or raw mode)
|
|
is available for reading.
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B \-intrup
|
|
Don't send input available interrupts.
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B mdmbuf
|
|
Start/stop output on carrier transitions (not implemented).
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B \-mdmbuf
|
|
Return error if write attempted after carrier drops.
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B litout
|
|
Send output characters without any processing.
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B \-litout
|
|
Do normal output processing, inserting delays, etc.
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B nohang
|
|
Don't send hangup signal if carrier drops.
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B \-nohang
|
|
Send hangup signal to control process group when carrier drops.
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.B etxack
|
|
Diablo style etx/ack handshaking (not implemented).
|
|
.PP
|
|
The following special characters are applicable only to the new
|
|
teletype driver
|
|
and are not normally changed.
|
|
.TP 10
|
|
.BI susp \ c\fR
|
|
set suspend process character to \fIc\fR (default `^Z').
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.BI dsusp \ c\fR
|
|
set delayed suspend process character to \fIc\fR (default `^Y').
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.BI rprnt \ c\fR
|
|
set reprint line character to \fIc\fR (default `^R').
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.BI flush \ c\fR
|
|
set flush output character to \fIc\fR (default `^O').
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.BI werase \ c\fR
|
|
set word erase character to \fIc\fR (default `^W').
|
|
.br
|
|
.ns
|
|
.TP 10
|
|
.BI lnext \ c\fR
|
|
set literal next character to \fIc\fR (default `^V').
|
|
.SH "SEE ALSO"
|
|
tset(1), tty(4)
|