aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-04-04 17:31:15 +0000
committerEric Andersen <andersen@codepoet.org>2001-04-04 17:31:15 +0000
commit3f98040554313a50ba68c60f43cd8c4a987a0d24 (patch)
tree53e5d4b531138eb0853b6233160b2cd4d768de1d /include
parent91c9388715182a71173f2da71d74173221460412 (diff)
downloadbusybox-3f98040554313a50ba68c60f43cd8c4a987a0d24.tar.gz
I said no new features till after the 0.51 release. Well, I lied. This is a
vi editor for busybox, contributed by Sterling Huxley <sterling@europa.com>. It adds 22k to the busybox binary when enabled. Quite impressive!
Diffstat (limited to 'include')
-rw-r--r--include/applets.h3
-rw-r--r--include/usage.h7
2 files changed, 10 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index 255bd6b44..c3037973d 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -413,6 +413,9 @@
#ifdef BB_UUENCODE
APPLET(uuencode, uuencode_main, _BB_DIR_USR_BIN)
#endif
+#ifdef BB_VI
+ APPLET(vi, vi_main, _BB_DIR_BIN)
+#endif
#ifdef BB_WATCHDOG
APPLET(watchdog, watchdog_main, _BB_DIR_SBIN)
#endif
diff --git a/include/usage.h b/include/usage.h
index aa7f0af22..abd0156ad 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1689,6 +1689,13 @@
"$ uudecode busybox busybox > busybox.uu\n" \
"$\n"
+#define vi_trivial_usage \
+ "[OPTION] [FILE]..."
+#define vi_full_usage \
+ "edit FILE.\n\n" \
+ "Options:\n" \
+ "\t-R\tRead-only- do not write to the file."
+
#define watchdog_trivial_usage \
"DEV"
#define watchdog_full_usage \