mirror of
https://github.com/troglobit/editline.git
synced 2025-05-06 04:21:24 +08:00
Add support for \e[1;3C and \e[1;3D
This commit is contained in:
parent
d0f2a5bc23
commit
4c4455353a
@ -1074,9 +1074,11 @@ static el_status_t meta(void)
|
|||||||
for (c = 1; c < 3; c++)
|
for (c = 1; c < 3; c++)
|
||||||
seq[c] = tty_get();
|
seq[c] = tty_get();
|
||||||
|
|
||||||
if (!strncmp(seq, ";5C", 3))
|
if (!strncmp(seq, ";5C", 3)
|
||||||
|
|| !strncmp(seq, ";3C", 3))
|
||||||
return fd_word(); /* \e[1;5C = Ctrl+Right */
|
return fd_word(); /* \e[1;5C = Ctrl+Right */
|
||||||
if (!strncmp(seq, ";5D", 3))
|
if (!strncmp(seq, ";5D", 3)
|
||||||
|
|| !strncmp(seq, ";3D", 3))
|
||||||
return bk_word(); /* \e[1;5D = Ctrl+Left */
|
return bk_word(); /* \e[1;5D = Ctrl+Left */
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user