diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-26 00:59:59 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-26 00:59:59 +0100 |
commit | 180f585ac379d9eb2250d8cc4c11fbea38a1b844 (patch) | |
tree | 7c9ade97f02447ddf9b492b6b0b3f2869c121206 | |
parent | 9d71fc6381bb6fa3d0deb4f55a334f124e9e9abf (diff) | |
download | busybox-w32-180f585ac379d9eb2250d8cc4c11fbea38a1b844.tar.gz busybox-w32-180f585ac379d9eb2250d8cc4c11fbea38a1b844.tar.bz2 busybox-w32-180f585ac379d9eb2250d8cc4c11fbea38a1b844.zip |
read_key: remove handling for ctrl-up/down, we don't use that. -12 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | include/libbb.h | 2 | ||||
-rw-r--r-- | libbb/read_key.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/libbb.h b/include/libbb.h index 6274ea2e8..9865121d9 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -1222,7 +1222,7 @@ enum { | |||
1222 | KEYCODE_FUN11 = -22, | 1222 | KEYCODE_FUN11 = -22, |
1223 | KEYCODE_FUN12 = -23, | 1223 | KEYCODE_FUN12 = -23, |
1224 | #endif | 1224 | #endif |
1225 | KEYCODE_CURSOR_POS = -0x100, | 1225 | KEYCODE_CURSOR_POS = -0x100, /* 0xfff..fff00 */ |
1226 | /* How long is the longest ESC sequence we know? | 1226 | /* How long is the longest ESC sequence we know? |
1227 | * We want it big enough to be able to contain | 1227 | * We want it big enough to be able to contain |
1228 | * cursor position sequence "ESC [ 9999 ; 9999 R" | 1228 | * cursor position sequence "ESC [ 9999 ; 9999 R" |
diff --git a/libbb/read_key.c b/libbb/read_key.c index 88ea79dc6..02c381dd5 100644 --- a/libbb/read_key.c +++ b/libbb/read_key.c | |||
@@ -83,8 +83,8 @@ int64_t FAST_FUNC read_key(int fd, char *buffer) | |||
83 | /* ESC [ 2 4 ; 5 ~ - Ctrl-F12 */ | 83 | /* ESC [ 2 4 ; 5 ~ - Ctrl-F12 */ |
84 | /* ESC [ 2 4 ; 6 ~ - Ctrl-Shift-F12 */ | 84 | /* ESC [ 2 4 ; 6 ~ - Ctrl-Shift-F12 */ |
85 | #endif | 85 | #endif |
86 | '[','1',';','5','A' |0x80,KEYCODE_CTRL_UP , | 86 | /* '[','1',';','5','A' |0x80,KEYCODE_CTRL_UP , - unused */ |
87 | '[','1',';','5','B' |0x80,KEYCODE_CTRL_DOWN , | 87 | /* '[','1',';','5','B' |0x80,KEYCODE_CTRL_DOWN , - unused */ |
88 | '[','1',';','5','C' |0x80,KEYCODE_CTRL_RIGHT, | 88 | '[','1',';','5','C' |0x80,KEYCODE_CTRL_RIGHT, |
89 | '[','1',';','5','D' |0x80,KEYCODE_CTRL_LEFT , | 89 | '[','1',';','5','D' |0x80,KEYCODE_CTRL_LEFT , |
90 | 0 | 90 | 0 |