From 10279a785bea6d7156dfa6f824e8d177df70ab1e Mon Sep 17 00:00:00 2001 From: RafRaf Date: Wed, 3 Oct 2018 13:48:54 +0300 Subject: [PATCH] stty: add page (#2280) --- pages/linux/stty.md | 23 +++++++++++++++++++++++ pages/osx/stty.md | 23 +++++++++++++++++++++++ pages/sunos/stty.md | 23 +++++++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 pages/linux/stty.md create mode 100644 pages/osx/stty.md create mode 100644 pages/sunos/stty.md diff --git a/pages/linux/stty.md b/pages/linux/stty.md new file mode 100644 index 000000000..51a85fee3 --- /dev/null +++ b/pages/linux/stty.md @@ -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` diff --git a/pages/osx/stty.md b/pages/osx/stty.md new file mode 100644 index 000000000..51a85fee3 --- /dev/null +++ b/pages/osx/stty.md @@ -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` diff --git a/pages/sunos/stty.md b/pages/sunos/stty.md new file mode 100644 index 000000000..51a85fee3 --- /dev/null +++ b/pages/sunos/stty.md @@ -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`