aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2011-04-25 20:33:42 +0000
committerTiago Cunha <tcunha@gmx.com>2011-04-25 20:33:42 +0000
commit215ee46106bd8d5324cab659d74abeeee1127224 (patch)
treea5adf1cb2a31c2438b5a044f7bc0e81c76916fa5 /tmux.h
parentd5150484d1ff6be13e4c4c5c399d44b0054755fa (diff)
downloadrtmux-215ee46106bd8d5324cab659d74abeeee1127224.tar.gz
rtmux-215ee46106bd8d5324cab659d74abeeee1127224.tar.bz2
rtmux-215ee46106bd8d5324cab659d74abeeee1127224.zip
Sync OpenBSD patchset 896:
When mode-mouse is on (it is off by default), automatically enter copy mode when the mouse is dragged or the mouse wheel is used. Also exit copy mode when the mouse wheel is scrolled off the bottom. Discussed with and written by hsim at gmx dot li.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tmux.h b/tmux.h
index c860b6ac..a2e11151 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.620 2011-04-18 21:07:58 nicm Exp $ */
+/* $Id: tmux.h,v 1.621 2011-04-25 20:33:42 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -1077,6 +1077,7 @@ struct mouse_event {
#define MOUSE_3 2
#define MOUSE_UP 3
#define MOUSE_BUTTON 3
+#define MOUSE_DRAG 32
#define MOUSE_45 64
u_int x;
u_int y;
@@ -1424,6 +1425,7 @@ void tty_cmd_clearstartofline(struct tty *, const struct tty_ctx *);
void tty_cmd_clearstartofscreen(struct tty *, const struct tty_ctx *);
void tty_cmd_deletecharacter(struct tty *, const struct tty_ctx *);
void tty_cmd_deleteline(struct tty *, const struct tty_ctx *);
+void tty_cmd_erasecharacter(struct tty *, const struct tty_ctx *);
void tty_cmd_insertcharacter(struct tty *, const struct tty_ctx *);
void tty_cmd_insertline(struct tty *, const struct tty_ctx *);
void tty_cmd_linefeed(struct tty *, const struct tty_ctx *);