diff options
Diffstat (limited to 'console-tools/clear.c')
-rw-r--r-- | console-tools/clear.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/console-tools/clear.c b/console-tools/clear.c index 8b727b39b..b0c6d65d2 100644 --- a/console-tools/clear.c +++ b/console-tools/clear.c | |||
@@ -15,5 +15,6 @@ | |||
15 | int clear_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 15 | int clear_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
16 | int clear_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) | 16 | int clear_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) |
17 | { | 17 | { |
18 | return printf("\033[H\033[J") != 6; | 18 | /* home; clear to the end of screen */ |
19 | return printf("\033[H""\033[J") != 6; | ||
19 | } | 20 | } |