/*
* Mini clear implementation for busybox
*
- *
- * Copyright (C) 1999,2000 by Lineo, inc.
- * Written by Erik Andersen <andersen@lineo.com>, <andersee@debian.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
*/
-#include "internal.h"
+/* no options, no getopt */
+
#include <stdio.h>
+#include <stdlib.h>
+#include "busybox.h"
-extern int clear_main(int argc, char **argv)
+int clear_main(int argc, char **argv)
{
- if (argc > 1 && strcmp(argv[1], "--help") == 0)
- usage(clear_usage);
-
- printf("\033[H\033[J");
- return(TRUE);
+ return printf("\033[H\033[J") != 6;
}