aboutsummaryrefslogtreecommitdiff
path: root/console-tools/clear.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--console-tools/clear.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/console-tools/clear.c b/console-tools/clear.c
index 232d500b5..ac22b787e 100644
--- a/console-tools/clear.c
+++ b/console-tools/clear.c
@@ -18,14 +18,5 @@ int clear_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
18int clear_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) 18int clear_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
19{ 19{
20 /* home; clear to the end of screen */ 20 /* home; clear to the end of screen */
21#if !ENABLE_PLATFORM_MINGW32
22 return full_write1_str("\033[H""\033[J") != 6; 21 return full_write1_str("\033[H""\033[J") != 6;
23#else
24 int ret;
25
26 ret = printf("\033[H\033[J");
27 fflush(stdout);
28
29 return ret != 6;
30#endif
31} 22}