Explorar el Código

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

BDisp hace 2 años
padre
commit
72d5787b69
Se han modificado 1 ficheros con 5 adiciones y 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 ();
 		}