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`