aboutsummaryrefslogtreecommitdiff
path: root/console-tools/resize.c
diff options
context:
space:
mode:
authorGravatar Denys Vlasenko <vda.linux@googlemail.com>2016-11-23 10:39:27 +0100
committerGravatar Denys Vlasenko <vda.linux@googlemail.com>2016-11-23 10:39:27 +0100
commit6d9329935c0621ddc056aee0d30cec52a24da499 (patch)
tree8b78faf3893c364337b138a9e8c20bfa4a286273 /console-tools/resize.c
parentc19f7584e14522043da141189711c8db72dfbc90 (diff)
downloadbusybox-6d9329935c0621ddc056aee0d30cec52a24da499.tar.gz
busybox-6d9329935c0621ddc056aee0d30cec52a24da499.tar.bz2
Convert all console-tools/* applets to "new style" applet definitions
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
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 a3342a195..567086f09 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: ""