diff options
author | Tiago Cunha <tcunha@gmx.com> | 2010-07-02 02:56:07 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2010-07-02 02:56:07 +0000 |
commit | 46f27eab22f78ec35a11b6e5b4d61e705c96eca1 (patch) | |
tree | 32e052bc14fd1362a2ec5f0c23128df7e1588a78 /tmux.h | |
parent | e4703bacb54b873a49a060395870120449efaf18 (diff) | |
download | rtmux-46f27eab22f78ec35a11b6e5b4d61e705c96eca1.tar.gz rtmux-46f27eab22f78ec35a11b6e5b4d61e705c96eca1.tar.bz2 rtmux-46f27eab22f78ec35a11b6e5b4d61e705c96eca1.zip |
Sync OpenBSD patchset 733:
replace some magic mouse constants with defines for clarity. ok nicm
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.568 2010-07-02 02:54:52 tcunha Exp $ */ +/* $Id: tmux.h,v 1.569 2010-07-02 02:56:07 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -1049,9 +1049,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; }; |