On Unix-like operating systems, the stty command changes and prints terminal line settings.
This page covers the GNU/Linux version of stty.
Description
stty displays or changes the characteristics of the terminal.
- Description
- Syntax
- Special characters
- Special settings
- Control settings
- Input settings
- Output settings
- Local settings
- Combination settings
- Examples
- Linux commands help
Syntax
stty [-F DEVICE | –file=DEVICE] [SETTING]…
stty [-F DEVICE | –file=DEVICE] [-a|–all]
stty [-F DEVICE | –file=DEVICE] [-g|–save]
Options
Special characters
Special settings
Control settings
Input settings
Output settings
Local settings
Combination settings
Handle the tty line connected to standard input. Without arguments, it prints baud rate, line discipline, and deviations from stty sane. In settings, CHAR is taken literally, or coded as in ^c, 0x37, 0177 or 127; special values ^- or undef are used to disable special characters.
Examples
stty sane
Reset all terminal settings to “sane” values; this has the effect of “fixing” the terminal when another program alters the terminal settings to an unusable condition.
stty -echo
Disable echoing of terminal input.
stty echo
Re-enable echoing of terminal input.
stty -a
Display all current terminal settings.