Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-12-27 07:35:04 +0300
committerDenis Vlasenko <vda.linux@googlemail.com>2006-12-27 07:35:04 +0300
commit8d42f86b146871ae4c4cafd3801a85f381249a14 (patch)
treeb963999fc54eddb65f1929b894f868e24851fc9c /console-tools/clear.c
Correcting branch name to be like previous ones
Diffstat (limited to 'console-tools/clear.c')
-rw-r--r--console-tools/clear.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/console-tools/clear.c b/console-tools/clear.c
new file mode 100644
index 000000000..9686d5004
--- /dev/null
+++ b/console-tools/clear.c
@@ -0,0 +1,21 @@
+/* vi: set sw=4 ts=4: */
+/*
+ * Mini clear implementation for busybox
+ *
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
+ *
+ * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
+ *
+ */
+
+/* no options, no getopt */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include "busybox.h"
+
+
+int clear_main(int argc, char **argv)
+{
+ return printf("\033[H\033[J") != 6;
+}