Manual / stty
stty(1)
| STTY(1) | General Commands Manual | STTY(1) |
NAME
stty - set terminal options
SYNOPSIS
stty [option...]
DESCRIPTION
Stty sets certain I/O options on the current output terminal. With no argument, it reports the current settings of the options. The option strings are selected from the following set:
- raw
- Disable input line assembly and line editing.
- -raw
- Restore input line assembly.
- echo, -echo
- Enable or disable echoing of typed characters.
- opost, -opost
- Enable or disable treating a carriage return as a newline. With -opost, CR only returns the column; LF advances the line.
- sane
- Restore cooked input, echo and output postprocessing.
Several options can be supplied together, for example:
stty raw -echo
FILES
/usr/man/STTY this page
SEE ALSO
DIAGNOSTICS
Exit status is 0 on success, 1 if standard output is not a console, 2 for invalid options or too many operands.
BUGS
At most five option words are accepted. Raw mode does not turn off interrupt signalling. Baud rates, parity, erase/kill character settings and saved-state operands are not implemented.
| September 19, 2026 | maux |