diff options
author | Tiago Cunha <tcunha@gmx.com> | 2012-04-10 09:56:04 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2012-04-10 09:56:04 +0000 |
commit | 14e5cdf02e5a618733c0ba1e11563c851602ec83 (patch) | |
tree | 56e640373387ce955c8ba8dcfc730d5b4c4b06ba /tmux.h | |
parent | 21f62c2cee8becb70c338fc560679efa9be37b1c (diff) | |
download | rtmux-14e5cdf02e5a618733c0ba1e11563c851602ec83.tar.gz rtmux-14e5cdf02e5a618733c0ba1e11563c851602ec83.tar.bz2 rtmux-14e5cdf02e5a618733c0ba1e11563c851602ec83.zip |
Sync OpenBSD patchset 1090:
Fix comment for mouse bits.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -1098,14 +1098,11 @@ struct tty_ctx { }; /* - * 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. 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. Bits + * 3, 4 and 5 are for keys. Bit 6 is set for dragging and 7 for mouse buttons 4 + * and 5. */ -/* Mouse input. */ struct mouse_event { u_int b; #define MOUSE_1 0 @@ -1113,6 +1110,9 @@ struct mouse_event { #define MOUSE_3 2 #define MOUSE_UP 3 #define MOUSE_BUTTON 3 +#define MOUSE_SHIFT 4 +#define MOUSE_ESCAPE 8 +#define MOUSE_CTRL 16 #define MOUSE_DRAG 32 #define MOUSE_45 64 #define MOUSE_RESIZE_PANE 128 /* marker for resizing */ |