diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2012-04-01 21:45:49 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2012-04-01 21:45:49 +0000 |
commit | b768e9412529ecb5bdb6739e27058a7e19bea63b (patch) | |
tree | 094c04be78054f842001088300a9c1bc540d7ff9 /usr.bin/tmux | |
parent | a54246d2a621eb4bd88f7565855435b04c806c61 (diff) |
Fix comment for mouse bits.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r-- | usr.bin/tmux/tmux.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h index de14db1a5c2..145f6536ba6 100644 --- a/usr.bin/tmux/tmux.h +++ b/usr.bin/tmux/tmux.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.h,v 1.326 2012/04/01 13:18:38 nicm Exp $ */ +/* $OpenBSD: tmux.h,v 1.327 2012/04/01 21:45:48 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -1102,14 +1102,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 @@ -1117,6 +1114,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 */ |