Browse Source

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

K. Lange 3 years ago
parent
commit
9cf3fa4fe2
2 changed files with 4 additions and 4 deletions
  1. 2 2
      apps/terminal-vga.c
  2. 2 2
      apps/terminal.c

+ 2 - 2
apps/terminal-vga.c

@@ -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~");

+ 2 - 2
apps/terminal.c

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