mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +01:00
Fixes #976. Mouse prints sequence characters on the terminal and the screen is not fully cleared. Only for netcoreapp3.1.
This commit is contained in:
@@ -74,7 +74,20 @@ namespace Terminal.Gui {
|
||||
}
|
||||
}
|
||||
public override void UpdateCursor () => Refresh ();
|
||||
public override void End () => Curses.endwin ();
|
||||
|
||||
public override void End ()
|
||||
{
|
||||
if (reportableMouseEvents.HasFlag (Curses.Event.ReportMousePosition)) {
|
||||
StopReportingMouseMoves ();
|
||||
}
|
||||
Curses.endwin ();
|
||||
// Clear and reset entire screen.
|
||||
Console.Out.Write ("\x1b[2J");
|
||||
Console.Out.Flush ();
|
||||
Console.Out.Write ("\x1b[1;25r");
|
||||
Console.Out.Flush ();
|
||||
}
|
||||
|
||||
public override void UpdateScreen () => window.redrawwin ();
|
||||
public override void SetAttribute (Attribute c) => Curses.attrset (c.value);
|
||||
public Curses.Window window;
|
||||
|
||||
Reference in New Issue
Block a user