aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2010-06-06 00:23:44 +0000
committerTiago Cunha <tcunha@gmx.com>2010-06-06 00:23:44 +0000
commitf62d3d22bb542e262ee961e5f3e2db33b963b4db (patch)
treed1f2fb87c3655247b1811ebcb9b1ab23dd6a594e /tmux.h
parent67dc249d0ee890e6f1c1b9d6cec1f15d1a3e373c (diff)
downloadrtmux-f62d3d22bb542e262ee961e5f3e2db33b963b4db.tar.gz
rtmux-f62d3d22bb542e262ee961e5f3e2db33b963b4db.tar.bz2
rtmux-f62d3d22bb542e262ee961e5f3e2db33b963b4db.zip
Sync OpenBSD patchset 710:
When the mode-mouse option is on, support dragging to make a selection in copy mode. Also support the scroll wheel, although xterm strangely does not ignore it in application mouse mode, causing redraw artifacts when scrolling up (other terminals appear to be better behaved).
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/tmux.h b/tmux.h
index effb690a..c0d3298c 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.559 2010-06-05 20:29:11 micahcowan Exp $ */
+/* $Id: tmux.h,v 1.560 2010-06-06 00:23:44 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -544,7 +544,8 @@ struct mode_key_table {
#define MODE_KCURSOR 0x4
#define MODE_KKEYPAD 0x8 /* set = application, clear = number */
#define MODE_MOUSE 0x10
-#define MODE_WRAP 0x20 /* whether lines wrap */
+#define MODE_MOUSEMOTION 0x20
+#define MODE_WRAP 0x40 /* whether lines wrap */
/*
* A single UTF-8 character.
@@ -1089,7 +1090,7 @@ struct client {
#define CLIENT_TERMINAL 0x1
#define CLIENT_PREFIX 0x2
-#define CLIENT_MOUSE 0x4
+/* 0x4 unused */
#define CLIENT_REDRAW 0x8
#define CLIENT_STATUS 0x10
#define CLIENT_REPEAT 0x20 /* allow command to repeat within repeat time */