diff options
Diffstat (limited to 'src/screen.c')
-rw-r--r-- | src/screen.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/screen.c b/src/screen.c index 3e3f2ab..0121124 100644 --- a/src/screen.c +++ b/src/screen.c @@ -842,6 +842,32 @@ void vt100_screen_reset_mouse_reporting_sgr_mode(VT100Screen *vt) vt->mouse_reporting_sgr_mode = 0; } +int vt100_screen_mouse_reporting_wants_button_press(VT100Screen *vt) +{ + return vt->mouse_reporting_press + || vt->mouse_reporting_press_release + || vt->mouse_reporting_button_motion + || vt->mouse_reporting_any_motion; +} + +int vt100_screen_mouse_reporting_wants_button_release(VT100Screen *vt) +{ + return vt->mouse_reporting_press_release + || vt->mouse_reporting_button_motion + || vt->mouse_reporting_any_motion; +} + +int vt100_screen_mouse_reporting_wants_button_motion(VT100Screen *vt) +{ + return vt->mouse_reporting_button_motion + || vt->mouse_reporting_any_motion; +} + +int vt100_screen_mouse_reporting_wants_any_motion(VT100Screen *vt) +{ + return vt->mouse_reporting_any_motion; +} + void vt100_screen_set_bracketed_paste(VT100Screen *vt) { vt->bracketed_paste = 1; |