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 /libbb | |
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 'libbb')
-rw-r--r-- | libbb/lineedit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index 72a1786ff..bc089ab1c 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c | |||
@@ -466,7 +466,7 @@ static void input_backward(unsigned num) | |||
466 | cmdedit_x = w * count_y - num; | 466 | cmdedit_x = w * count_y - num; |
467 | } | 467 | } |
468 | /* go to 1st column; go up; go to correct column */ | 468 | /* go to 1st column; go up; go to correct column */ |
469 | printf("\r" "\033[%dA" "\033[%dC", count_y, cmdedit_x); | 469 | printf("\r" "\033[%uA" "\033[%uC", count_y, cmdedit_x); |
470 | } | 470 | } |
471 | 471 | ||
472 | static void put_prompt(void) | 472 | static void put_prompt(void) |