diff --git a/Terminal.Gui/ConsoleDrivers/CursesDriver/CursesDriver.cs b/Terminal.Gui/ConsoleDrivers/CursesDriver/CursesDriver.cs index 88b876eba..2d52e0006 100644 --- a/Terminal.Gui/ConsoleDrivers/CursesDriver/CursesDriver.cs +++ b/Terminal.Gui/ConsoleDrivers/CursesDriver/CursesDriver.cs @@ -77,10 +77,10 @@ namespace Terminal.Gui { public override void Refresh () { Curses.refresh (); - //if (Curses.CheckWinChange ()) { - // Clip = new Rect (0, 0, Cols, Rows); - // TerminalResized?.Invoke (); - //} + if (Curses.CheckWinChange ()) { + Clip = new Rect (0, 0, Cols, Rows); + TerminalResized?.Invoke (); + } } public override void UpdateCursor () => Refresh (); diff --git a/Terminal.Gui/ConsoleDrivers/CursesDriver/UnixMainLoop.cs b/Terminal.Gui/ConsoleDrivers/CursesDriver/UnixMainLoop.cs index 96087cce8..feccf6126 100644 --- a/Terminal.Gui/ConsoleDrivers/CursesDriver/UnixMainLoop.cs +++ b/Terminal.Gui/ConsoleDrivers/CursesDriver/UnixMainLoop.cs @@ -116,7 +116,7 @@ namespace Terminal.Gui { this.mainLoop = mainLoop; pipe (wakeupPipes); AddWatch (wakeupPipes [0], Condition.PollIn, ml => { - read (wakeupPipes [0], ignore, (IntPtr)0); + read (wakeupPipes [0], ignore, (IntPtr)1); return true; }); }