Windows: restore console mode on exit

This commit is contained in:
Nick Van Dyck
2018-05-17 23:12:25 +02:00
parent b8fe231d19
commit e654c3f196

View File

@@ -93,6 +93,7 @@ namespace Terminal.Gui {
public void Cleanup ()
{
ConsoleMode = originalConsoleMode;
ContinueListeningForConsoleEvents = false;
if (!SetConsoleActiveScreenBuffer (OutputHandle)) {
var err = Marshal.GetLastWin32Error ();