diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-11-22 23:14:24 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-11-22 23:14:24 +0100 |
commit | fb4da167114e96d7f20ef97474f976f8ffa604e7 (patch) | |
tree | 6f688202bc89ffa68b6679d1b252fd69b7471c94 /miscutils/ttysize.c | |
parent | 9f8eb1ee7620020e01b3596ac7259d51ebca7a7b (diff) |
Split miscutils/Config.src items into miscutils/*.c files
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils/ttysize.c')
-rw-r--r-- | miscutils/ttysize.c | 8 |
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]" |