stty: add page (#2280)

This commit is contained in:
RafRaf
2018-10-03 13:48:54 +03:00
committed by Starbeamrainbowlabs
parent bc6d1c1cb9
commit 10279a785b
3 changed files with 69 additions and 0 deletions

23
pages/linux/stty.md Normal file
View 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
View 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
View 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`