diff options
author | Ted Unangst <tedu@openbsd.org> | 2010-06-29 05:24:49 +0000 |
---|---|---|
committer | Ted Unangst <tedu@openbsd.org> | 2010-06-29 05:24:49 +0000 |
commit | b4b9b831ee9f6b1848657939fb19a7b7076d26f4 (patch) | |
tree | 0748a701481f215e732ef43c870f38c8d79f85d1 /tmux.h | |
parent | 552c9cd83f7207759b41947f63ada828683b7892 (diff) | |
download | rtmux-b4b9b831ee9f6b1848657939fb19a7b7076d26f4.tar.gz rtmux-b4b9b831ee9f6b1848657939fb19a7b7076d26f4.tar.bz2 rtmux-b4b9b831ee9f6b1848657939fb19a7b7076d26f4.zip |
replace some magic mouse constants with defines for clarity. ok nicm
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -1050,9 +1050,23 @@ struct tty_ctx { u_int last_width; }; +/* + * xterm mouse mode is fairly silly. Buttons are in the bottom two + * bits: 0 button 1; 1 button 2; 2 button 3; 3 buttons released. + * + * Bit 3 is shift; bit 4 is meta; bit 5 control. + * + * Bit 6 is added for mouse buttons 4 and 5. + */ /* Mouse input. */ struct mouse_event { u_char b; +#define MOUSE_1 0 +#define MOUSE_2 1 +#define MOUSE_3 2 +#define MOUSE_UP 3 +#define MOUSE_BUTTON 3 +#define MOUSE_45 64 u_char x; u_char y; }; |