diff options
author | Denys Vlasenko | 2010-05-16 23:42:13 +0200 |
---|---|---|
committer | Denys Vlasenko | 2010-05-16 23:42:13 +0200 |
commit | d9a3e89f501800c3e7c779b7e9545a5c80134593 (patch) | |
tree | ba3b65ce2d512542a27e78f4820d799008bc0b4c /console-tools/clear.c | |
parent | 26e2c1db0df35df1affa558efc12d2bcfd7718e2 (diff) | |
download | busybox-d9a3e89f501800c3e7c779b7e9545a5c80134593.zip busybox-d9a3e89f501800c3e7c779b7e9545a5c80134593.tar.gz |
consolidate ESC sequences
function old new delta
bell 2 - -2
CMdown 2 - -2
Ceos 4 - -4
Ceol 4 - -4
CMup 4 - -4
SOs 5 - -5
SOn 5 - -5
CMrc 9 - -9
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'console-tools/clear.c')
-rw-r--r-- | console-tools/clear.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/console-tools/clear.c b/console-tools/clear.c index 8b727b3..b0c6d65 100644 --- a/console-tools/clear.c +++ b/console-tools/clear.c @@ -15,5 +15,6 @@ int clear_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int clear_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) { - return printf("\033[H\033[J") != 6; + /* home; clear to the end of screen */ + return printf("\033[H""\033[J") != 6; } |