summaryrefslogtreecommitdiff
path: root/console-tools/clear.c
diff options
context:
space:
mode:
Diffstat (limited to 'console-tools/clear.c')
-rw-r--r--console-tools/clear.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/console-tools/clear.c b/console-tools/clear.c
index b0c6d65d2..cac716394 100644
--- a/console-tools/clear.c
+++ b/console-tools/clear.c
@@ -5,16 +5,12 @@
5 * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> 5 * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
6 * 6 *
7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
8 *
9 */ 8 */
10
11/* no options, no getopt */
12
13#include "libbb.h" 9#include "libbb.h"
14 10
15int clear_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 11int clear_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
16int clear_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) 12int clear_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
17{ 13{
18 /* home; clear to the end of screen */ 14 /* home; clear to the end of screen */
19 return printf("\033[H""\033[J") != 6; 15 return full_write1_str("\033[H""\033[J") != 6;
20} 16}