summaryrefslogtreecommitdiff
path: root/console-tools
diff options
context:
space:
mode:
Diffstat (limited to 'console-tools')
-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 e43ed0e..020cdfb 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;
}