aboutsummaryrefslogtreecommitdiff
path: root/clear.c
diff options
context:
space:
mode:
Diffstat (limited to 'clear.c')
-rw-r--r--clear.c26
1 files changed, 22 insertions, 4 deletions
diff --git a/clear.c b/clear.c
index 21a890c9e..c0c94d06e 100644
--- a/clear.c
+++ b/clear.c
@@ -1,12 +1,30 @@
1/*
2 * Mini clear implementation for busybox
3 *
4 * Copyright (C) 1998 by Erik Andersen <andersee@debian.org>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 *
20 */
21
1#include "internal.h" 22#include "internal.h"
2#include <stdio.h> 23#include <stdio.h>
3 24
4const char clear_usage[] = "clear\n"
5"\n"
6"\tClears the screen.\n";
7 25
8extern int 26extern int
9clear_main(struct FileInfo * i, int argc, char * * argv) 27clear_main(int argc, char** argv)
10{ 28{
11 printf("\033[H\033[J"); 29 printf("\033[H\033[J");
12 return 0; 30 return 0;