We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3078686 + ae6b359 commit 190056bCopy full SHA for 190056b
src/mainclient/shell.c
@@ -867,7 +867,7 @@ static int line() {
867
if (write_console((char *) gbl_prompt, gbl_plen) == -1) return -1;
868
for (;;) {
869
char c;
870
- char seq[3];
+ char seq[5];
871
872
int rc;
873
do {
@@ -991,6 +991,20 @@ static int line() {
991
default:
992
break;
993
}
994
+ } else if (seq[2] == ';') {
995
+ if (read_console(seq + 3, 2) == -1) break;
996
+ if (seq[3] == '5') {
997
+ switch (seq[4]) {
998
+ case 'C': /* ctrl-right */
999
+ krightw();
1000
+ break;
1001
+ case 'D': /* ctrl-left */
1002
+ kleftw();
1003
1004
+ default:
1005
1006
+ }
1007
1008
1009
} else if (seq[0] == 'O') {
1010
if (read_console(seq + 1, 1) == -1) break;
0 commit comments