maux
Star on GitHub Buy me a coffee

Manual / stty

stty(1)

STTY(1) General Commands Manual STTY(1)

stty - set terminal options

stty [option...]

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:

Disable input line assembly and line editing.
Restore input line assembly.
Enable or disable echoing of typed characters.
Enable or disable treating a carriage return as a newline. With -opost, CR only returns the column; LF advances the line.
Restore cooked input, echo and output postprocessing.

Several options can be supplied together, for example:

stty raw -echo

/usr/man/STTY this page

reset(1), vidmode(1), licenses(1)

Exit status is 0 on success, 1 if standard output is not a console, 2 for invalid options or too many operands.

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