1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-06 22:12:47 -05:00

Support xterm any-event mouse tracking

From https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Any-event-tracking:

    Any-event mode is the same as button-event mode, except that all motion
    events are reported, even if no mouse button is down.  It is enabled by
    specifying 1003 to DECSET.

Normally the front ends only report mouse events when buttons are
pressed, so we introduce a MA_MOVE event with MBT_NOTHING set to
indicate such a mouse movement.

(cherry picked from commit 3cfbd3df0f)
This commit is contained in:
Ben Jackson
2019-12-20 13:56:58 +00:00
committed by Simon Tatham
parent 4eb089f601
commit 0112167f98
5 changed files with 48 additions and 5 deletions

View File

@ -155,6 +155,8 @@ struct terminal_tag {
bool xterm_extended_mouse;
bool urxvt_extended_mouse;
int mouse_is_down; /* used while tracking mouse buttons */
int raw_mouse_reported_x;
int raw_mouse_reported_y;
bool bracketed_paste, bracketed_paste_active;