Browse Source

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

BDisp 8 months ago
parent
commit
5c1c002418
1 changed files with 2 additions and 5 deletions
  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;
         }