mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Windows: restore console mode on exit
This commit is contained in:
@@ -93,6 +93,7 @@ namespace Terminal.Gui {
|
||||
|
||||
public void Cleanup ()
|
||||
{
|
||||
ConsoleMode = originalConsoleMode;
|
||||
ContinueListeningForConsoleEvents = false;
|
||||
if (!SetConsoleActiveScreenBuffer (OutputHandle)) {
|
||||
var err = Marshal.GetLastWin32Error ();
|
||||
|
||||
Reference in New Issue
Block a user