Explorar o código

Prevents echoing text at the terminal when leaving the app due to escape sequences.

BDisp %!s(int64=2) %!d(string=hai) anos
pai
achega
72d5787b69
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      Terminal.Gui/ConsoleDrivers/CursesDriver/CursesDriver.cs

+ 5 - 0
Terminal.Gui/ConsoleDrivers/CursesDriver/CursesDriver.cs

@@ -160,6 +160,11 @@ namespace Terminal.Gui {
 			StopReportingMouseMoves ();
 			SetCursorVisibility (CursorVisibility.Default);
 
+			var code = Curses.get_wch (out _);
+			while (code != -1) {
+				code = Curses.get_wch (out _);
+			}
+
 			Curses.endwin ();
 		}