aboutsummaryrefslogtreecommitdiff
path: root/miscutils/ttysize.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/ttysize.c')
-rw-r--r--miscutils/ttysize.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/miscutils/ttysize.c b/miscutils/ttysize.c
index d2d48d0a9..a63b731d2 100644
--- a/miscutils/ttysize.c
+++ b/miscutils/ttysize.c
@@ -9,6 +9,14 @@
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
+//config:config TTYSIZE
+//config: bool "ttysize"
+//config: default y
+//config: help
+//config: A replacement for "stty size". Unlike stty, can report only width,
+//config: only height, or both, in any order. It also does not complain on
+//config: error, but returns default 80x24.
+//config: Usage in shell scripts: width=`ttysize w`.
//usage:#define ttysize_trivial_usage
//usage: "[w] [h]"