mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +01:00
enable mouse
This commit is contained in:
@@ -313,6 +313,7 @@ namespace Terminal {
|
||||
AddCh (Curses.ACS_LRCORNER);
|
||||
}
|
||||
|
||||
Curses.Event oldMouseEvents, reportableMouseEvents;
|
||||
public override void Init (Action terminalResized)
|
||||
{
|
||||
if (window != null)
|
||||
@@ -326,6 +327,7 @@ namespace Terminal {
|
||||
Curses.raw ();
|
||||
Curses.noecho ();
|
||||
Curses.Window.Standard.keypad (true);
|
||||
reportableMouseEvents = Curses.mousemask (Curses.Event.AllEvents, out oldMouseEvents);
|
||||
this.terminalResized = terminalResized;
|
||||
|
||||
Colors.Base = new ColorScheme ();
|
||||
|
||||
Reference in New Issue
Block a user