diff options
author | Ron Yorston <rmy@pobox.com> | 2014-03-20 11:23:42 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2014-03-20 11:23:42 +0000 |
commit | 3c363398fbd15f56ebeb7287b68368c8fb6abba7 (patch) | |
tree | 345fddba465fd47f624d7018e1a5660592d3d3be /console-tools/clear.c | |
parent | 992902efa7d40f2bc52d5bda0e51da27a2a2dbcc (diff) | |
download | busybox-w32-3c363398fbd15f56ebeb7287b68368c8fb6abba7.tar.gz busybox-w32-3c363398fbd15f56ebeb7287b68368c8fb6abba7.tar.bz2 busybox-w32-3c363398fbd15f56ebeb7287b68368c8fb6abba7.zip |
clear: undo mingw32-specific changes
Diffstat (limited to '')
-rw-r--r-- | console-tools/clear.c | 9 |
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; | |||
18 | int clear_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) | 18 | int 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 | } |