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 @@
9 * 9 *
10 * Licensed under GPLv2, see file LICENSE in this source tree. 10 * Licensed under GPLv2, see file LICENSE in this source tree.
11 */ 11 */
12//config:config TTYSIZE
13//config: bool "ttysize"
14//config: default y
15//config: help
16//config: A replacement for "stty size". Unlike stty, can report only width,
17//config: only height, or both, in any order. It also does not complain on
18//config: error, but returns default 80x24.
19//config: Usage in shell scripts: width=`ttysize w`.
12 20
13//usage:#define ttysize_trivial_usage 21//usage:#define ttysize_trivial_usage
14//usage: "[w] [h]" 22//usage: "[w] [h]"