home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 5
/
FreshFish_July-August1994.bin
/
bbs
/
gnu
/
sh-utils-1.10-bin.lha
/
man
/
cat1
/
stty.0
< prev
next >
Wrap
Text File
|
1993-12-07
|
12KB
|
463 lines
STTY(1L) STTY(1L)
NNAAMMEE
stty - change and print terminal line settings
SSYYNNOOPPSSIISS
ssttttyy [-ag] [--all] [--save] [setting...]
DDEESSCCRRIIPPTTIIOONN
This manual page documents the GNU version of ssttttyy. If
given no arguments, ssttttyy prints the baud rate, line disci-
pline number (on systems that support it), and line set-
tings that have been changed from the values set by `stty
sane'. Mode reading and setting are performed on the tty
line connected to the standard input.
ssttttyy accepts the following non-option arguments that
change aspects of the terminal line operation. A `[-]'
before a capability means that it can be turned off by
preceding it with a `-'. Some arguments are not available
on all systems, since they use non-POSIX extensions. Such
arguments are marked below with `(np)'.
Control settings:
[-]parenb
Generate parity bit in output and expect parity bit
in input.
[-]parodd
Set odd parity (even with `-').
cs5 cs6 cs7 cs8
Set character size to 5, 6, 7, or 8 bits.
[-]hupcl [-]hup
Send a hangup signal when the last process closes
the tty.
[-]cstopb
Use two stop bits per character (one with `-').
[-]cread
Allow input to be received.
[-]clocal
Disable modem control signals.
[-]crtscts (np)
Enable RTS/CTS handshaking.
Input settings:
1
STTY(1L) STTY(1L)
[-]ignbrk
Ignore breaks.
[-]brkint
Breaks cause an interrupt signal.
[-]ignpar
Ignore parity errors.
[-]parmrk
Mark parity errors (with a 255-0-character
sequence).
[-]inpck
Enable input parity checking.
[-]istrip
Clear high (8th) bit of input characters.
[-]inlcr
Translate newline to carriage return.
[-]igncr
Ignore carriage return.
[-]icrnl
Translate carriage return to newline.
[-]ixon
Enable XON/XOFF flow control.
[-]ixoff [-]tandem
Enable sending of stop character when the system
input buffer is almost full, and start character
when it becomes almost empty again.
[-]iuclc (np)
Translate uppercase characters to lowercase.
[-]ixany (np)
Allow any character to restart output (only the
start character with `-').
[-]imaxbel (np)
Enable beeping and not flushing input buffer if a
character arrives when the input buffer is full.
Output settings:
[-]opost
Postprocess output.
2
STTY(1L) STTY(1L)
[-]olcuc (np)
Translate lowercase characters to uppercase.
[-]ocrnl (np)
Translate carriage return to newline.
[-]onlcr (np)
Translate newline to carriage return-newline.
[-]onocr (np)
Do not print carriage returns in the first column.
[-]onlret (np)
Newline performs a carriage return.
[-]ofill (np)
Use fill (padding) characters instead of timing for
delays.
[-]ofdel (np)
Use delete characters for fill instead of null
characters.
nl1 nl0 (np)
Newline delay style.
cr3 cr2 cr1 cr0 (np)
Carriage return delay style.
tab3 tab2 tab1 tab0 (np)
Horizontal tab delay style.
bs1 bs0 (np)
Backspace delay style.
vt1 vt0 (np)
Vertical tab delay style.
ff1 ff0 (np)
Form feed delay style.
Local settings:
[-]isig
Enable interrupt, quit, and suspend special charac-
ters.
[-]icanon
Enable erase, kill, werase, and rprnt special char-
acters.
[-]iexten
Enable non-POSIX special characters.
3
STTY(1L) STTY(1L)
[-]echo
Echo input characters.
[-]echoe, [-]crterase
Echo erase characters as backspace-space-backspace.
[-]echok
Echo a newline after a kill character.
[-]echonl
Echo newline even if not echoing other characters.
[-]noflsh
Disable flushing after interrupt and quit special
characters.
[-]xcase (np)
Enable input and output of uppercase characters by
preceding their lowercase equivalents with `\',
when icanon is set.
[-]tostop (np)
Stop background jobs that try to write to the ter-
minal.
[-]echoprt [-]prterase (np)
Echo erased characters backward, between `\' and
'/'.
[-]echoctl [-]ctlecho (np)
Echo control characters in hat notation (`^c')
instead of literally.
[-]echoke [-]crtkill (np)
Echo the kill special character by erasing each
character on the line as indicated by the echoprt
and echoe settings, instead of by the echoctl and
echok settings.
Combination settings:
[-]evenp [-]parity
Same as parenb -parodd cs7. With `-', same as
-parenb cs8.
[-]oddp
Same as parenb parodd cs7. With `-', same as
-parenb cs8.
[-]nl Same as -icrnl -onlcr. With `-', same as icrnl
-inlcr -igncr onlcr -ocrnl -onlret.
ek Reset the erase and kill special characters to
4
STTY(1L) STTY(1L)
their default values.
sane Same as cread -ignbrk brkint -inlcr -igncr icrnl
-ixoff -iuclc -ixany imaxbel opost -olcuc -ocrnl
onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0
vt0 ff0 isig icanon iexten echo echoe echok -echonl
-noflsh -xcase -tostop -echoprt echoctl echoke, and
also sets all special characters to their default
values.
[-]cooked
Same as brkint ignpar istrip icrnl ixon opost isig
icanon, plus sets the eof and eol characters to
their default values if they are the same as the
min and time characters. With `-', same as raw.
[-]raw Same as -ignbrk -brkint -ignpar -parmrk -inpck
-istrip -inlcr -igncr -icrnl -ixon -ixoff -iuclc
-ixany -imaxbel -opost -isig -icanon -xcase min 1
time 0. With `-', same as cooked.
[-]cbreak
Same as -icanon.
[-]pass8
Same as -parenb -istrip cs8. With `-', same as
parenb istrip cs7.
[-]litout
Same as -parenb -istrip -opost cs8. With `-', same
as parenb istrip opost cs7.
[-]decctlq (np)
Same as -ixany.
[-]tabs (np)
Same as tab0. With `-', same as tab3.
[-]lcase [-]LCASE (np)
Same as xcase iuclc olcuc.
crt Same as echoe echoctl echoke.
dec Same as echoe echoctl echoke -ixany, and also sets
the interrupt s