Explorar o código

Avoids initial black screen after moving the mouse at first time.

BDisp hai 10 meses
pai
achega
5c1c002418
Modificáronse 1 ficheiros con 2 adicións e 5 borrados
  1. 2 5
      Terminal.Gui/ConsoleDrivers/CursesDriver/CursesDriver.cs

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

@@ -683,12 +683,9 @@ internal class CursesDriver : ConsoleDriver
         if (!RunningUnitTests)
         {
             Curses.CheckWinChange ();
-            ClearContents ();
 
-            if (Force16Colors)
-            {
-                Curses.refresh ();
-            }
+            // On Init this call is needed no mater Force16Colors or not
+            Curses.refresh ();
 
             EscSeqUtils.ContinuousButtonPressed += EscSeqUtils_ContinuousButtonPressed;
         }