diff options
author | nicm <nicm> | 2022-05-30 13:02:55 +0000 |
---|---|---|
committer | nicm <nicm> | 2022-05-30 13:02:55 +0000 |
commit | 2b60ff588ebc26258848fa9d89a6e32e46eeba58 (patch) | |
tree | fd0601ee36d97121b5351561e402749e85aaf563 /tmux.h | |
parent | cd89000c1d75d0cfec28cf7e81b06f80a43ea093 (diff) | |
download | rtmux-2b60ff588ebc26258848fa9d89a6e32e46eeba58.tar.gz rtmux-2b60ff588ebc26258848fa9d89a6e32e46eeba58.tar.bz2 rtmux-2b60ff588ebc26258848fa9d89a6e32e46eeba58.zip |
If a mouse position was above the maximum supported by the normal mouse
protocol (223), tmux was allowing it to wrap around. However, since tmux
was not correctly handling this on input, other programs also do not
handle it correctly, and the alternative SGR mouse mode is now
widespread, this seems unnecessary, so remove this feature. Also define
some constants to make it clearer what the numbers mean. Mostly from
Leonid S Usov in GitHub issue 3165.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -580,6 +580,12 @@ enum tty_code_code { #define MOTION_MOUSE_MODES (MODE_MOUSE_BUTTON|MODE_MOUSE_ALL) #define CURSOR_MODES (MODE_CURSOR|MODE_CURSOR_BLINKING|MODE_CURSOR_VERY_VISIBLE) +/* Mouse protocol constants. */ +#define MOUSE_PARAM_MAX 0xff +#define MOUSE_PARAM_UTF8_MAX 0x7ff +#define MOUSE_PARAM_BTN_OFF 0x20 +#define MOUSE_PARAM_POS_OFF 0x21 + /* A single UTF-8 character. */ typedef u_int utf8_char; |