STTY(1)
NAME
stty − set terminal options
USAGE
stty [ option ... ]
DESCRIPTION
Stty 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 that are different from their defaults. With the argument all, it reports all normally-used option settings. With the argument everything, stty prints everything it knows about. You may select the option strings from the set described below.
OPTIONS
even Allow even parity input.
−even Disallow even parity input.
odd Allow odd parity input.
−odd Disallow odd parity input.
raw Use raw mode input, i.e., do no input processing (erase, kill, interrupt, ...). Pass back the parity bit.
−raw Negate raw mode.
cooked Perform the same function as −raw.
cbreak Make each character available to read (2) as received; perform all processing except erase and kill.
−cbreak Make characters available to read (2) only when a newline is received.
−nl Allow carriage return for a newline, and output CR-LF for a carriage return or newline.
nl Accept only a newline to end lines.
echo Echo back every character typed.
−echo Do not echo characters.
lcase Map uppercase to lowercase.
−lcase Do not map case.
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.
−tandem Disable flow control.
−tabs Replace tabs by spaces when printing.
tabs Preserve tabs.
ek Set erase and kill characters to the pound sign (#) and the at sign (@), respectively.
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. Stty also interprets a value of ↑x, a two-character sequence, as a control character, with ↑? representing delete.
erase c Set erase character to c.
kill c Set kill character to c.
intr c Set interrupt character to c.
quit c Set the quit character to c.
start c Set the start character to c.
stop c Set the stop character to c.
eof c Set the end-of-file character to c.
brk c Set the break character to c. The default is undefined. This character is an extra wakeup character.
cr0 cr1 cr2 cr3
Not supported in DOMAIN/IX.
nl0 nl1 nl2 nl3
Select the style of delay for line feed.
tab0 tab1 tab2 tab3
Not supported in DOMAIN/IX.
ff0 ff1 Not supported in DOMAIN/IX.
bs0 bs1 Not supported in DOMAIN/IX.
tty33 Set all modes suitable for the Teletype Corporation Model 33 terminal.
tty37 Set all modes suitable for the Teletype Corporation Model 37 terminal.
vt05 Set all modes suitable for Digital Equipment Corp. VT05 terminal.
dec Set all modes suitable for Digital Equipment Corp. operating systems users; (erase, kill, and interrupt characters to ↑?, ↑U, and ↑C, decctlq and newcrt.)
tn300 Set all modes suitable for a General Electric TermiNet 300.
ti700 Set all modes suitable for Texas Instruments 700 series terminal.
tek Set all modes suitable for Tektronix 4014 terminal.
0 Hang up the phone line immediately.
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.
A teletype driver that supports the job control processing of csh (1) and more functionality than the basic driver is fully described in tty (4). The following options apply only to it.
new Use new driver (switching flushes typeahead).
crt Set options for a CRT. These options include crtbs and ctlecho. If CRT is running at more than 1200 baud, the options also include crterase and crtkill.
crtbs Echo backspaces on erase characters.
prterase Not supported in DOMAIN/IX.
crterase Wipe out erased characters with a backspace-space-backspace sequence.
−crterase Leave erased characters visible; backspace only.
crtkill Wipe out input on line kill in the manner of crterase.
−crtkill Just echo line kill character and a newline on line kill.
ctlecho Echo control characters as ↑x (and delete as ↑?). Print two backspaces following the EOT character (e.g., CONTROL-D, or ↑D).
−ctlecho Control characters echo as themselves. In cooked mode, EOT (e.g., CONTROL-D, or ↑D) does not echo.
decctlq After output is suspended (normally by ↑S), allow only a start character (normally ↑Q) to restart it.
−decctlq After output is suspended, allow any character typed to restart it. The start character will restart output without providing any input.
tostop Stop background jobs if they attempt terminal output.
−tostop Allow output from background jobs to the terminal.
tilde Not supported in DOMAIN/IX.
−tilde Not supported in DOMAIN/IX.
flusho Not supported in DOMAIN/IX.
−flusho Not supported in DOMAIN/IX.
pendin Not supported in DOMAIN/IX.
−pendin Not supported in DOMAIN/IX.
intrup Not supported in DOMAIN/IX.
−intrup Not supported in DOMAIN/IX.
mdmbuf Not supported in DOMAIN/IX.
−mdmbuf
Return error if write attempted after carrier drops.
litout Send output characters without any processing.
−litout Do normal output processing, inserting delays, etc.
nohang Do not send hangup signal if carrier drops.
−nohang Send hangup signal to control process group when carrier drops.
etxack Not supported in DOMAIN/IX.
The following special characters are applicable only to the new teletype driver and are not normally changed.
susp c Set suspend process character to c. The default is CONTROL-Z (↑Z).
dsusp c Not supported in DOMAIN/IX.
rprnt c Set reprint line character to c.
flush c Set flush output character to c.
werase c Set word erase character to c.
lnext c Set literal next character to c.
CAUTIONS
In a Display Manager pad, only the echo (−echo) and raw (−raw or cooked) options are immediately effective. All other settings are remembered for use when a window is running under control of a VT100 emulator.