From 9cf3fa4fe2658fb2f9104a184303f85bfa5f0fd3 Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Thu, 16 Aug 2018 12:02:28 +0900 Subject: [PATCH] Stuff ^[[H/^[[F for home/end instead of ^[OH/^[OF --- apps/terminal-vga.c | 4 ++-- apps/terminal.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/terminal-vga.c b/apps/terminal-vga.c index 687cd2c5..d88ec0fb 100644 --- a/apps/terminal-vga.c +++ b/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~"); diff --git a/apps/terminal.c b/apps/terminal.c index f184a073..c7390842 100644 --- a/apps/terminal.c +++ b/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: