mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Fixes CursesDriver resize issue.
This commit is contained in:
@@ -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 ();
|
||||
|
||||
@@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user