aboutsummaryrefslogtreecommitdiff
path: root/miscutils/ttysize.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/ttysize.c')
-rw-r--r--miscutils/ttysize.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/miscutils/ttysize.c b/miscutils/ttysize.c
index d2d48d0a9..135ce8535 100644
--- a/miscutils/ttysize.c
+++ b/miscutils/ttysize.c
@@ -9,6 +9,18 @@
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`.
20
21//applet:IF_TTYSIZE(APPLET(ttysize, BB_DIR_USR_BIN, BB_SUID_DROP))
22
23//kbuild:lib-$(CONFIG_TTYSIZE) += ttysize.o
12 24
13//usage:#define ttysize_trivial_usage 25//usage:#define ttysize_trivial_usage
14//usage: "[w] [h]" 26//usage: "[w] [h]"