Stuff ^[[H/^[[F for home/end instead of ^[OH/^[OF

This commit is contained in:
K. Lange 2018-08-16 12:02:28 +09:00
parent ead924b110
commit 9cf3fa4fe2
2 changed files with 4 additions and 4 deletions

View File

@ -858,10 +858,10 @@ void key_event(int ret, key_event_t * event) {
handle_input_s("\033[6~");
break;
case KEY_HOME:
handle_input_s("\033OH");
handle_input_s("\033[H");
break;
case KEY_END:
handle_input_s("\033OF");
handle_input_s("\033[F");
break;
case KEY_DEL:
handle_input_s("\033[3~");

View File

@ -1496,7 +1496,7 @@ static void key_event(int ret, key_event_t * event) {
redraw_scrollback();
}
} else {
handle_input_s("\033OH");
handle_input_s("\033[H");
}
break;
case KEY_END:
@ -1504,7 +1504,7 @@ static void key_event(int ret, key_event_t * event) {
scrollback_offset = 0;
redraw_scrollback();
} else {
handle_input_s("\033OF");
handle_input_s("\033[F");
}
break;
case KEY_DEL: