diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-25 23:50:56 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-25 23:50:56 +0100 |
commit | a17eeb847e66824c4d389751cc90415d3fc1c5a3 (patch) | |
tree | a5dd027573c002641942191f8ae1f7c7b1f7429e /include | |
parent | 77c066ea5cf4b1ee606a81e48388ff0b1d019134 (diff) | |
download | busybox-w32-a17eeb847e66824c4d389751cc90415d3fc1c5a3.tar.gz busybox-w32-a17eeb847e66824c4d389751cc90415d3fc1c5a3.tar.bz2 busybox-w32-a17eeb847e66824c4d389751cc90415d3fc1c5a3.zip |
lineedit: handle Ctrl-arrows
function old new delta
read_line_input 4629 4824 +195
BB_isalnum - 39 +39
BB_ispunct - 35 +35
BB_isspace - 31 +31
static.esccmds 69 93 +24
vi_word_motion 165 162 -3
vi_back_motion 204 198 -6
vi_end_motion 172 163 -9
bb_iswspace 28 - -28
bb_iswpunct 32 - -32
bb_iswalnum 37 - -37
------------------------------------------------------------------------------
(add/remove: 3/3 grow/shrink: 5/8 up/down: 334/-129) Total: 205 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index a1744ecc3..6274ea2e8 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -1203,6 +1203,11 @@ enum { | |||
1203 | KEYCODE_DELETE = -9, | 1203 | KEYCODE_DELETE = -9, |
1204 | KEYCODE_PAGEUP = -10, | 1204 | KEYCODE_PAGEUP = -10, |
1205 | KEYCODE_PAGEDOWN = -11, | 1205 | KEYCODE_PAGEDOWN = -11, |
1206 | |||
1207 | KEYCODE_CTRL_UP = KEYCODE_UP & ~0x40, | ||
1208 | KEYCODE_CTRL_DOWN = KEYCODE_DOWN & ~0x40, | ||
1209 | KEYCODE_CTRL_RIGHT = KEYCODE_RIGHT & ~0x40, | ||
1210 | KEYCODE_CTRL_LEFT = KEYCODE_LEFT & ~0x40, | ||
1206 | #if 0 | 1211 | #if 0 |
1207 | KEYCODE_FUN1 = -12, | 1212 | KEYCODE_FUN1 = -12, |
1208 | KEYCODE_FUN2 = -13, | 1213 | KEYCODE_FUN2 = -13, |