stty

v0.0.26
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.

Options

--all, -a

print all current settings in human-readable form

--save, -g

print all current settings in a stty-readable form

--file=<DEVICE>, -F <DEVICE>

open and use the specified DEVICE instead of stdin

settings to change

Examples

Display all settings for the current terminal:

stty --all

Set the number of rows or columns:

stty {{rows|cols}} {{count}}

Get the actual transfer speed of a device:

stty --file {{path/to/device_file}} speed

Reset all modes to reasonable values for the current terminal:

stty sane

The examples are provided by the tldr-pages project under the CC BY 4.0 License.

Please note that, as uutils is a work in progress, some examples might fail.