diff options
author | Eric Andersen | 2002-09-17 20:53:41 +0000 |
---|---|---|
committer | Eric Andersen | 2002-09-17 20:53:41 +0000 |
commit | 60943c5d5c0cee31476ca9bf71e4f539cbe2aa57 (patch) | |
tree | 846b5179a32760ffb0c7d3cb1e769814aa0bf274 /coreutils | |
parent | 39ad2833c0dae62b9a640f69ba6a357bd6b87246 (diff) | |
download | busybox-60943c5d5c0cee31476ca9bf71e4f539cbe2aa57.zip busybox-60943c5d5c0cee31476ca9bf71e4f539cbe2aa57.tar.gz |
Sane-ify the screen clearing stuff.
-Erik
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/watch.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/coreutils/watch.c b/coreutils/watch.c index 78ede4c..a4b1f64 100644 --- a/coreutils/watch.c +++ b/coreutils/watch.c @@ -32,8 +32,6 @@ extern int watch_main(int argc, char **argv) { const char date_argv[2][10] = { "date", "" }; - const char clrscr[] = - "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"; const int header_len = 40; char header[header_len + 1]; int period = 2; @@ -79,7 +77,7 @@ extern int watch_main(int argc, char **argv) old_stdout = dup(1); while (1) { - printf("%s%s", clrscr, header); + printf("\033[H\033[J%s", header); date_main(1, (char **) date_argv); printf("\n"); |