1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/stty.md

33 lines
631 B
Markdown
Raw Normal View History

2018-10-03 13:48:54 +03:00
# stty
> Set options for a terminal device interface.
> 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:
`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:
`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`