2018-10-03 13:48:54 +03:00
|
|
|
# stty
|
|
|
|
|
|
|
|
> Set options for a terminal device interface.
|
2025-01-18 18:45:33 +05:30
|
|
|
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/stty-invocation.html>.
|
2018-10-03 13:48:54 +03:00
|
|
|
|
|
|
|
- Display all settings for the current terminal:
|
|
|
|
|
2025-03-26 02:30:50 +02:00
|
|
|
`stty {{[-a|--all]}}`
|
2018-10-03 13:48:54 +03:00
|
|
|
|
2022-12-06 16:48:59 +10:00
|
|
|
- Set the number of rows or columns:
|
2018-10-03 13:48:54 +03:00
|
|
|
|
2022-12-06 16:48:59 +10:00
|
|
|
`stty {{rows|cols}} {{count}}`
|
2018-10-03 13:48:54 +03:00
|
|
|
|
|
|
|
- Get the actual transfer speed of a device:
|
|
|
|
|
2025-03-26 02:30:50 +02:00
|
|
|
`stty {{[-F|--file]}} {{path/to/device_file}} speed`
|
2018-10-03 13:48:54 +03:00
|
|
|
|
|
|
|
- Reset all modes to reasonable values for the current terminal:
|
|
|
|
|
|
|
|
`stty sane`
|
2025-02-04 02:37:24 +02:00
|
|
|
|
|
|
|
- Switch between raw and normal mode:
|
|
|
|
|
|
|
|
`stty {{raw|cooked}}`
|
|
|
|
|
|
|
|
- Turn character echoing off or on:
|
|
|
|
|
|
|
|
`stty {{-echo|echo}}`
|
2025-03-26 00:36:41 +02:00
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
`stty --help`
|