From 3444ac7fcbc9b5e66b3e5a40ba8030ed6b9395a4 Mon Sep 17 00:00:00 2001 From: Skull <86374920+skkuull@users.noreply.github.com> Date: Thu, 28 Jul 2022 00:50:09 +0300 Subject: [PATCH] fix escape drawing symbols which is now clears the console input --- src/client/component/console.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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;