summaryrefslogtreecommitdiffhomepage
path: root/console-tools
diff options
context:
space:
mode:
author"Vladimir N. Oleynik" <dzo@simtreas.ru>2005-10-12 08:43:00 +0000
committer"Vladimir N. Oleynik" <dzo@simtreas.ru>2005-10-12 08:43:00 +0000
commit87210b5f4b92660b737f4c3e56b44c1c19a37fac (patch)
tree77ccca8fec73a4c28ad52d859e89e92d84e0cb7b /console-tools
parentffe17b51b4305519d39e6772ce0bc7c564efede7 (diff)
trivial generate exit code
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 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;
}