Add support for \e[1;3C and \e[1;3D

This commit is contained in:
Rebecca Turner 2024-09-09 09:44:44 -07:00
parent d0f2a5bc23
commit 4c4455353a
No known key found for this signature in database

View File

@ -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;