aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--console-tools/clear.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/console-tools/clear.c b/console-tools/clear.c
index e43ed0e02..020cdfb47 100644
--- a/console-tools/clear.c
+++ b/console-tools/clear.c
@@ -29,6 +29,5 @@
extern int clear_main(int argc, char **argv)
{
- printf("\033[H\033[J");
- return EXIT_SUCCESS;
+ return printf("\033[H\033[J") != 6;
}