mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 10:42:07 +02:00
stty: add page (#2280)
This commit is contained in:
parent
bc6d1c1cb9
commit
10279a785b
3 changed files with 69 additions and 0 deletions
23
pages/linux/stty.md
Normal file
23
pages/linux/stty.md
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
# stty
|
||||||
|
|
||||||
|
> Set options for a terminal device interface.
|
||||||
|
|
||||||
|
- Display all settings for the current terminal:
|
||||||
|
|
||||||
|
`stty -a`
|
||||||
|
|
||||||
|
- Set the number of rows:
|
||||||
|
|
||||||
|
`stty rows {{rows}}`
|
||||||
|
|
||||||
|
- Set the number of columns:
|
||||||
|
|
||||||
|
`stty cols {{cols}}`
|
||||||
|
|
||||||
|
- Get the actual transfer speed of a device:
|
||||||
|
|
||||||
|
`stty -f {{path/to/device_file}} speed`
|
||||||
|
|
||||||
|
- Reset all modes to reasonable values for the current terminal:
|
||||||
|
|
||||||
|
`stty sane`
|
23
pages/osx/stty.md
Normal file
23
pages/osx/stty.md
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
# stty
|
||||||
|
|
||||||
|
> Set options for a terminal device interface.
|
||||||
|
|
||||||
|
- Display all settings for the current terminal:
|
||||||
|
|
||||||
|
`stty -a`
|
||||||
|
|
||||||
|
- Set the number of rows:
|
||||||
|
|
||||||
|
`stty rows {{rows}}`
|
||||||
|
|
||||||
|
- Set the number of columns:
|
||||||
|
|
||||||
|
`stty cols {{cols}}`
|
||||||
|
|
||||||
|
- Get the actual transfer speed of a device:
|
||||||
|
|
||||||
|
`stty -f {{path/to/device_file}} speed`
|
||||||
|
|
||||||
|
- Reset all modes to reasonable values for the current terminal:
|
||||||
|
|
||||||
|
`stty sane`
|
23
pages/sunos/stty.md
Normal file
23
pages/sunos/stty.md
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
# stty
|
||||||
|
|
||||||
|
> Set options for a terminal device interface.
|
||||||
|
|
||||||
|
- Display all settings for the current terminal:
|
||||||
|
|
||||||
|
`stty -a`
|
||||||
|
|
||||||
|
- Set the number of rows:
|
||||||
|
|
||||||
|
`stty rows {{rows}}`
|
||||||
|
|
||||||
|
- Set the number of columns:
|
||||||
|
|
||||||
|
`stty cols {{cols}}`
|
||||||
|
|
||||||
|
- Get the actual transfer speed of a device:
|
||||||
|
|
||||||
|
`stty -f {{path/to/device_file}} speed`
|
||||||
|
|
||||||
|
- Reset all modes to reasonable values for the current terminal:
|
||||||
|
|
||||||
|
`stty sane`
|
Loading…
Add table
Reference in a new issue