aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2010-05-31 19:51:29 +0000
committerNicholas Marriott <nicm@openbsd.org>2010-05-31 19:51:29 +0000
commit43fa9a9ba60f0fba1f5c7985ed9c65cea304d2c4 (patch)
tree89dc06ea00452e3f6e440d6875016ee9d0910c66 /tmux.h
parente1e120de1c4fc5f37940ba3a6567acc914f1692c (diff)
downloadrtmux-43fa9a9ba60f0fba1f5c7985ed9c65cea304d2c4.tar.gz
rtmux-43fa9a9ba60f0fba1f5c7985ed9c65cea304d2c4.tar.bz2
rtmux-43fa9a9ba60f0fba1f5c7985ed9c65cea304d2c4.zip
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.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/tmux.h b/tmux.h
index 961019d8..3069f89b 100644
--- a/tmux.h
+++ b/tmux.h
@@ -541,7 +541,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.
@@ -1086,7 +1087,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 */