Browse Source

Windows: restore console mode on exit

Nick Van Dyck 7 years ago
parent
commit
e654c3f196
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Terminal.Gui/Drivers/WindowsDriver.cs

+ 1 - 0
Terminal.Gui/Drivers/WindowsDriver.cs

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