diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-16 23:42:13 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-16 23:42:13 +0200 |
commit | d9a3e89f501800c3e7c779b7e9545a5c80134593 (patch) | |
tree | ba3b65ce2d512542a27e78f4820d799008bc0b4c /procps/watch.c | |
parent | 26e2c1db0df35df1affa558efc12d2bcfd7718e2 (diff) | |
download | busybox-w32-d9a3e89f501800c3e7c779b7e9545a5c80134593.tar.gz busybox-w32-d9a3e89f501800c3e7c779b7e9545a5c80134593.tar.bz2 busybox-w32-d9a3e89f501800c3e7c779b7e9545a5c80134593.zip |
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 'procps/watch.c')
-rw-r--r-- | procps/watch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/procps/watch.c b/procps/watch.c index 126945c40..a1cde9ea0 100644 --- a/procps/watch.c +++ b/procps/watch.c | |||
@@ -52,7 +52,8 @@ int watch_main(int argc UNUSED_PARAM, char **argv) | |||
52 | width = (unsigned)-1; // make sure first time new_width != width | 52 | width = (unsigned)-1; // make sure first time new_width != width |
53 | header = NULL; | 53 | header = NULL; |
54 | while (1) { | 54 | while (1) { |
55 | printf("\033[H\033[J"); | 55 | /* home; clear to the end of screen */ |
56 | printf("\033[H""\033[J"); | ||
56 | if (!(opt & 0x2)) { // no -t | 57 | if (!(opt & 0x2)) { // no -t |
57 | const unsigned time_len = sizeof("1234-67-90 23:56:89"); | 58 | const unsigned time_len = sizeof("1234-67-90 23:56:89"); |
58 | time_t t; | 59 | time_t t; |