From 9ea4c777ad829c4b892b4fbc21883936dfe938b7 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Thu, 1 Aug 2024 21:41:11 +0300 Subject: [PATCH] Kernel: TTY now handles ESC key presses This allows exiting vim :D --- kernel/kernel/Terminal/TTY.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/kernel/Terminal/TTY.cpp b/kernel/kernel/Terminal/TTY.cpp index 3f7a22b00f..1a241f3aab 100644 --- a/kernel/kernel/Terminal/TTY.cpp +++ b/kernel/kernel/Terminal/TTY.cpp @@ -193,6 +193,9 @@ namespace Kernel case LibInput::Key::Backspace: ansi_c_str = "\b"; break; + case LibInput::Key::Escape: + ansi_c_str = "\e"; + break; case LibInput::Key::ArrowUp: ansi_c_str = "\e[A"; break;