fix escape drawing symbols
which is now clears the console input
This commit is contained in:
parent
0d089c092a
commit
3444ac7fcb
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user