From 97037d3068d51cc2e2f25881d7d6fc93d02f4173 Mon Sep 17 00:00:00 2001
From: andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Date: Mon, 21 Aug 2000 21:18:52 +0000
Subject: Add in the "reset" command.  -Erik

git-svn-id: svn://busybox.net/trunk/busybox@962 69ca8d6d-28ef-0310-b511-8ec308f3f277
---
 applets/busybox.c |  3 +++
 applets/usage.c   | 10 ++++++++++
 busybox.c         |  3 +++
 busybox.def.h     |  1 +
 docs/busybox.pod  | 12 ++++++++++--
 docs/busybox.sgml | 14 +++++++++++++-
 internal.h        |  2 ++
 usage.c           | 10 ++++++++++
 8 files changed, 52 insertions(+), 3 deletions(-)

diff --git a/applets/busybox.c b/applets/busybox.c
index 25bfe438d..5d13a7b98 100644
--- a/applets/busybox.c
+++ b/applets/busybox.c
@@ -229,6 +229,9 @@ const struct BB_applet applets[] = {
 #ifdef BB_RENICE
 	{"renice", renice_main, _BB_DIR_USR_BIN},
 #endif
+#ifdef BB_RESET
+	{"reset", reset_main, _BB_DIR_USR_BIN, reset_usage},
+#endif
 #ifdef BB_RM
 	{"rm", rm_main, _BB_DIR_BIN, rm_usage},
 #endif
diff --git a/applets/usage.c b/applets/usage.c
index 5037c94d8..eaa77cc84 100644
--- a/applets/usage.c
+++ b/applets/usage.c
@@ -876,6 +876,16 @@ const char renice_usage[] =
 	;
 #endif
 
+
+#if defined BB_RESET
+const char reset_usage[] =
+	"reset\n"
+#ifndef BB_FEATURE_TRIVIAL_HELP
+	"\nResets the screen.\n"
+#endif
+	;
+#endif
+
 #if defined BB_RM
 const char rm_usage[] =
 	"rm [OPTION]... FILE...\n"
diff --git a/busybox.c b/busybox.c
index 25bfe438d..5d13a7b98 100644
--- a/busybox.c
+++ b/busybox.c
@@ -229,6 +229,9 @@ const struct BB_applet applets[] = {
 #ifdef BB_RENICE
 	{"renice", renice_main, _BB_DIR_USR_BIN},
 #endif
+#ifdef BB_RESET
+	{"reset", reset_main, _BB_DIR_USR_BIN, reset_usage},
+#endif
 #ifdef BB_RM
 	{"rm", rm_main, _BB_DIR_BIN, rm_usage},
 #endif
diff --git a/busybox.def.h b/busybox.def.h
index 78e826d9b..91ab0b3c9 100644
--- a/busybox.def.h
+++ b/busybox.def.h
@@ -74,6 +74,7 @@
 #define BB_PWD
 #define BB_REBOOT
 #define BB_RENICE
+#define BB_RESET
 #define BB_RM
 #define BB_RMDIR
 #define BB_RMMOD
diff --git a/docs/busybox.pod b/docs/busybox.pod
index cdbe3e0f0..916ccb6f0 100644
--- a/docs/busybox.pod
+++ b/docs/busybox.pod
@@ -61,7 +61,7 @@ fdflush, find, free, freeramdisk, fsck.minix, grep, gunzip, gzip, halt,
 head, hostid, hostname, id, init, insmod, kill, killall, length, ln,
 loadacm, loadfont, loadkmap, logger, logname, ls, lsmod, makedevs, mkdir,
 mkfifo, mkfs.minix, mknod, mkswap, mktemp, more, mount, mt, mv, nc,
-nslookup, ping, poweroff, printf, ps, pwd, reboot, renice, rm, rmdir, rmmod, sed,
+nslookup, ping, poweroff, printf, ps, pwd, reboot, renice, reset, rm, rmdir, rmmod, sed,
 setkeycodes, sh, sleep, sort, swapoff, swapon, sync, syslogd, tail,
 tar, tee, telnet, test, touch, tr, true, tty, umount, uname, uniq, update,
 uptime, usleep, uudecode, uuencode, wc, which, whoami, yes, zcat, [
@@ -1396,6 +1396,14 @@ from 20 (the process runs only when nothing else is running) to 0
 
 -------------------------------
 
+=item reset
+
+Usage: reset
+
+Resets the screen.
+
+-------------------------------
+
 =item rm
 
 Usage: rm [OPTION]... FILE...
@@ -2044,4 +2052,4 @@ Enrique Zanardi <ezanardi@ull.es>
 
 =cut
 
-# $Id: busybox.pod,v 1.60 2000/08/02 18:48:25 andersen Exp $
+# $Id: busybox.pod,v 1.61 2000/08/21 21:18:52 andersen Exp $
diff --git a/docs/busybox.sgml b/docs/busybox.sgml
index 560bd61f6..864dbe0ac 100644
--- a/docs/busybox.sgml
+++ b/docs/busybox.sgml
@@ -140,7 +140,7 @@
 		loadacm, loadfont, loadkmap, logger, logname, ls, lsmod,
 		makedevs, mkdir, mkfifo, mkfs.minix, mknod, mkswap, mktemp,
 		more, mount, mt, mv, nc, nslookup, ping, poweroff, printf, ps,
-		pwd, reboot, renice, rm, rmdir, rmmod, sed, setkeycodes, sh, sleep,
+		pwd, reboot, renice, reset, rm, rmdir, rmmod, sed, setkeycodes, sh, sleep,
 		sort, swapoff, swapon, sync, syslogd, tail, tar, tee, telnet,
 		test, touch, tr, true, tty, umount, uname, uniq, update,
 		uptime, usleep, uudecode, uuencode, wc, which, whoami, yes,
@@ -2459,6 +2459,18 @@
 		</para>
 	</sect1>
 
+	<sect1 id="reset">
+	    <title>reset</title>
+
+		<para>
+		Usage: reset
+		</para>
+
+		<para>
+		Resets the screen.
+		</para>
+	</sect1>
+
 	<sect1 id="rm">
 	    <title>rm</title>
 
diff --git a/internal.h b/internal.h
index 9de1c9372..a47274342 100644
--- a/internal.h
+++ b/internal.h
@@ -178,6 +178,7 @@ extern int ps_main(int argc, char** argv);
 extern int pwd_main(int argc, char** argv);
 extern int reboot_main(int argc, char** argv);
 extern int renice_main(int argc, char** argv);
+extern int reset_main(int argc, char** argv);
 extern int rm_main(int argc, char** argv);
 extern int rmdir_main(int argc, char **argv);
 extern int rmmod_main(int argc, char** argv);
@@ -283,6 +284,7 @@ extern const char ps_usage[];
 extern const char pwd_usage[];
 extern const char reboot_usage[];
 extern const char renice_usage[];
+extern const char reset_usage[];
 extern const char rm_usage[];
 extern const char rmdir_usage[];
 extern const char rmmod_usage[];
diff --git a/usage.c b/usage.c
index 5037c94d8..eaa77cc84 100644
--- a/usage.c
+++ b/usage.c
@@ -876,6 +876,16 @@ const char renice_usage[] =
 	;
 #endif
 
+
+#if defined BB_RESET
+const char reset_usage[] =
+	"reset\n"
+#ifndef BB_FEATURE_TRIVIAL_HELP
+	"\nResets the screen.\n"
+#endif
+	;
+#endif
+
 #if defined BB_RM
 const char rm_usage[] =
 	"rm [OPTION]... FILE...\n"
-- 
cgit v1.2.3-55-g6feb