Fixes CursesDriver resize issue.

This commit is contained in:
BDisp
2021-06-04 16:00:52 +01:00
parent bbffac8f23
commit a6b940f1fd
2 changed files with 5 additions and 5 deletions

View File

@@ -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 ();

View File

@@ -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;
});
}