From 3f98040554313a50ba68c60f43cd8c4a987a0d24 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 4 Apr 2001 17:31:15 +0000 Subject: 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 . It adds 22k to the busybox binary when enabled. Quite impressive! --- include/applets.h | 3 +++ include/usage.h | 7 +++++++ 2 files changed, 10 insertions(+) (limited to 'include') 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 \ -- cgit v1.2.3