fix escape drawing symbols

which is now clears the console input
This commit is contained in:
Skull 2022-07-28 00:50:09 +03:00
parent 0d089c092a
commit 3444ac7fcb

View File

@ -292,6 +292,13 @@ namespace console
update(); update();
break; break;
} }
case VK_ESCAPE:
{
con.cursor = 0;
clear_output();
strncpy_s(con.buffer, "", sizeof(con.buffer));
break;
}
default: default:
{ {
const auto c = record.Event.KeyEvent.uChar.AsciiChar; const auto c = record.Event.KeyEvent.uChar.AsciiChar;