diff --git a/src/client/component/console.cpp b/src/client/component/console.cpp index 2fd35434..7daaa3f7 100644 --- a/src/client/component/console.cpp +++ b/src/client/component/console.cpp @@ -292,6 +292,13 @@ namespace console update(); break; } + case VK_ESCAPE: + { + con.cursor = 0; + clear_output(); + strncpy_s(con.buffer, "", sizeof(con.buffer)); + break; + } default: { const auto c = record.Event.KeyEvent.uChar.AsciiChar;