Revision: 2772
http://tmux.svn.sourceforge.net/tmux/?rev=2772&view=rev
Author: tcunha
Date: 2012-04-10 09:56:04 +0000 (Tue, 10 Apr 2012)
Log Message:
-----------
Sync OpenBSD patchset 1090:
Fix comment for mouse bits.
Modified Paths:
--------------
trunk/tmux.h
Modified: trunk/tmux.h
===================================================================
--- trunk/tmux.h 2012-04-10 09:55:27 UTC (rev 2771)
+++ trunk/tmux.h 2012-04-10 09:56:04 UTC (rev 2772)
@@ -1098,14 +1098,11 @@
};
/*
- * 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 @@
#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 */
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs