diff options
author | Denys Vlasenko | 2010-04-18 22:09:30 -0700 |
---|---|---|
committer | Denys Vlasenko | 2010-04-18 22:09:30 -0700 |
commit | c175c4664734e5a363d8cc8668c08f551eff1485 (patch) | |
tree | 7a71009d3d5a9b3a0e8be65bf020f4605cee4bae /libbb/read_key.c | |
parent | def4783a8a8b00f58d224ff6735d3532809aeb54 (diff) | |
download | busybox-c175c4664734e5a363d8cc8668c08f551eff1485.zip busybox-c175c4664734e5a363d8cc8668c08f551eff1485.tar.gz |
vi: discover window size even on serial consoles. optional
function old new delta
edit_file 671 761 +90
wh_helper - 57 +57
query_screen_dimensions 54 63 +9
ar_main 533 542 +9
refresh 767 773 +6
vi_main 242 243 +1
text_yank 56 54 -2
get_terminal_width_height 180 135 -45
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 5/2 up/down: 172/-47) Total: 125 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/read_key.c')
-rw-r--r-- | libbb/read_key.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/read_key.c b/libbb/read_key.c index 8422976..64557ab 100644 --- a/libbb/read_key.c +++ b/libbb/read_key.c @@ -214,7 +214,7 @@ int64_t FAST_FUNC read_key(int fd, char *buffer, int timeout) } n++; /* Try to decipher "ESC [ NNN ; NNN R" sequence */ - if (ENABLE_FEATURE_EDITING_ASK_TERMINAL + if ((ENABLE_FEATURE_EDITING_ASK_TERMINAL || ENABLE_FEATURE_VI_ASK_TERMINAL) && n >= 5 && buffer[0] == '[' && buffer[n-1] == 'R' |