stty - change and print terminal line settings
stty [-F DEVICE | --file=DEVICE] [SETTING]...
stty [-F DEVICE | --file=DEVICE] [-a|--all]
stty [-F DEVICE | --file=DEVICE] [-g|--save]
Print or change terminal characteristics.
Mandatory arguments to long options are mandatory for short options too.
print all current settings in human-readable form
print all current settings in a stty-readable form
open and use the specified DEVICE instead of stdin
display this help and exit
output version information and exit
Optional - before SETTING indicates negation. An * marks non-POSIX settings. The underlying system defines which settings are available.
CHAR will toggle discarding of output
CHAR will send an end of file (terminate the input)
CHAR will end the line
alternate CHAR for ending the line
CHAR will erase the last character typed
CHAR will send an interrupt signal
CHAR will erase the current line
CHAR will enter the next character quoted
CHAR will send a quit signal
CHAR will redraw the current line
CHAR will restart the output after stopping it
CHAR will stop the output
CHAR will send a terminal stop signal
CHAR will switch to a different shell layer
CHAR will erase the last word typed
set the input and output speeds to N bauds
tell the kernel that the terminal has N columns
same as cols N
wait for transmission before applying settings (on by default)
set the input speed to N
use line discipline N
with -icanon, set N characters minimum for a completed read
set the output speed to N
tell the kernel that the terminal has N rows
print the number of rows and columns according to the kernel
print the terminal speed
with -icanon, set read timeout of N tenths of a second
disable modem control signals
allow input to be received
enable RTS/CTS handshaking
set character size to N bits, N in [5..8]
use two stop bits per character (one with '-')
send a hangup signal when the last process closes the tty
same as [-]hup
generate parity bit in output and expect parity bit in input
set odd parity (or even parity with '-')
use "stick" (mark/space) parity
breaks cause an interrupt signal
translate carriage return to newline
ignore break characters
ignore carriage return
ignore characters with parity errors
beep and do not flush a full input buffer on a character
translate newline to carriage return
enable input parity checking
clear high (8th) bit of input characters
assume input characters are UTF-8 encoded
translate uppercase characters to lowercase
let any character restart output, not only start character
enable sending of start/stop characters
enable XON/XOFF flow control
mark parity errors (with a 255-0-character sequence)
same as [-]ixoff
backspace delay style, N in [0..1]
carriage return delay style, N in [0..3]
form feed delay style, N in [0..1]
newline delay style, N in [0..1]
translate carriage return to newline
use delete characters for fill instead of NUL characters
use fill (padding) characters instead of timing for delays
translate lowercase characters to uppercase
translate newline to carriage return-newline
newline performs a carriage return
do not print carriage returns in the first column
postprocess output
horizontal tab delay style, N in [0..3]
same as tab0
same as tab3
vertical tab delay style, N in [0..1]
echo erase characters as backspace-space-backspace
kill all line by obeying the echoprt and echoe settings
kill all line by obeying the echoctl and echok settings
echo control characters in hat notation ('^c')
echo input characters
same as [-]ctlecho
same as [-]crterase
echo a newline after a kill character
same as [-]crtkill
echo newline even if not echoing other characters
echo erased characters backward, between '\' and '/'
enable "LINEMODE"; useful with high latency links
discard output
enable special characters: erase, kill, werase, rprnt
enable non-POSIX special characters
enable interrupt, quit, and suspend special characters
disable flushing after interrupt and quit special characters
same as [-]echoprt
stop background jobs that try to write to the terminal
with icanon, escape with '\' for uppercase characters
same as [-]lcase
same as -icanon
same as icanon
same as brkint ignpar istrip icrnl ixon opost isig icanon, eof and eol characters to their default values
same as raw
same as echoe echoctl echoke
same as echoe echoctl echoke -ixany intr ^c erase 0177 kill ^u
same as [-]ixany
erase and kill characters to their default values
same as parenb -parodd cs7
same as -parenb cs8
same as xcase iuclc olcuc
same as -parenb -istrip -opost cs8
same as parenb istrip opost cs7
same as -icrnl -onlcr
same as icrnl -inlcr -igncr onlcr -ocrnl -onlret
same as parenb parodd cs7
same as -parenb cs8
same as [-]evenp
same as -parenb -istrip cs8
same as parenb istrip cs7
same as -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff -icanon -opost -isig -iuclc -ixany -imaxbel -xcase min 1 time 0
same as cooked
same as cread -ignbrk brkint -inlcr -igncr icrnl icanon iexten echo echoe echok -echonl -noflsh -ixoff -iutf8 -iuclc -ixany imaxbel -xcase -olcuc -ocrnl opost -ofill onlcr -onocr -onlret nl0 cr0 tab0 bs0 vt0 ff0 isig -tostop -ofdel -echoprt echoctl echoke -extproc -flusho, all special characters to their default values
Handle the tty line connected to standard input. Without arguments, 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 used to disable special characters.
Written by David MacKenzie.
GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
Report any translation bugs to <https://translationproject.org/team/>
Copyright © 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
Full documentation <https://www.gnu.org/software/coreutils/stty>
or available locally via: info '(coreutils) stty invocation'