Kernel: TTY now handles ESC key presses

This allows exiting vim :D
This commit is contained in:
Bananymous 2024-08-01 21:41:11 +03:00
parent a33b63d066
commit 9ea4c777ad
1 changed files with 3 additions and 0 deletions

View File

@ -193,6 +193,9 @@ namespace Kernel
case LibInput::Key::Backspace: case LibInput::Key::Backspace:
ansi_c_str = "\b"; ansi_c_str = "\b";
break; break;
case LibInput::Key::Escape:
ansi_c_str = "\e";
break;
case LibInput::Key::ArrowUp: case LibInput::Key::ArrowUp:
ansi_c_str = "\e[A"; ansi_c_str = "\e[A";
break; break;