diff options
author | Eric Andersen <andersen@codepoet.org> | 1999-10-05 22:58:32 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 1999-10-05 22:58:32 +0000 |
commit | 2b69c40e8060934c115922c012737bd471956f09 (patch) | |
tree | c92657a42b94419ab9579e8c52639c301764ec40 /console-tools | |
parent | cc8ed39b240180b58810784f844e253263594ac3 (diff) | |
download | busybox-w32-2b69c40e8060934c115922c012737bd471956f09.tar.gz busybox-w32-2b69c40e8060934c115922c012737bd471956f09.tar.bz2 busybox-w32-2b69c40e8060934c115922c012737bd471956f09.zip |
More stuff works.
-Erik
Diffstat (limited to 'console-tools')
-rw-r--r-- | console-tools/clear.c | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/console-tools/clear.c b/console-tools/clear.c index 21a890c9e..c0c94d06e 100644 --- a/console-tools/clear.c +++ b/console-tools/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 | ||
4 | const char clear_usage[] = "clear\n" | ||
5 | "\n" | ||
6 | "\tClears the screen.\n"; | ||
7 | 25 | ||
8 | extern int | 26 | extern int |
9 | clear_main(struct FileInfo * i, int argc, char * * argv) | 27 | clear_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; |