summaryrefslogtreecommitdiff
path: root/console-tools/resize.c
diff options
context:
space:
mode:
Diffstat (limited to 'console-tools/resize.c')
-rw-r--r--console-tools/resize.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/console-tools/resize.c b/console-tools/resize.c
index a3342a1..567086f 100644
--- a/console-tools/resize.c
+++ b/console-tools/resize.c
@@ -6,7 +6,26 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-/* no options, no getopt */
+//config:config RESIZE
+//config: bool "resize"
+//config: default y
+//config: help
+//config: This program is used to (re)set the width and height of your current
+//config: terminal.
+//config:
+//config:config FEATURE_RESIZE_PRINT
+//config: bool "Print environment variables"
+//config: default y
+//config: depends on RESIZE
+//config: help
+//config: Prints the newly set size (number of columns and rows) of
+//config: the terminal.
+//config: E.g.:
+//config: COLUMNS=80;LINES=44;export COLUMNS LINES;
+
+//applet:IF_RESIZE(APPLET(resize, BB_DIR_USR_BIN, BB_SUID_DROP))
+
+//kbuild:lib-$(CONFIG_RESIZE) += resize.o
//usage:#define resize_trivial_usage
//usage: ""