aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-11-22 19:17:01 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-11-22 19:17:01 +0000
commit7ab0b466fe38835cc92f28fed490d7f6ca1a3b5c (patch)
treecb27c5d2b6f1774db80d1458a69f2fc9073e7754 /tmux.h
parent18d72e69289fa3dbdb0766ea7f9c0ff8908626b9 (diff)
downloadrtmux-7ab0b466fe38835cc92f28fed490d7f6ca1a3b5c.tar.gz
rtmux-7ab0b466fe38835cc92f28fed490d7f6ca1a3b5c.tar.bz2
rtmux-7ab0b466fe38835cc92f28fed490d7f6ca1a3b5c.zip
Text selection with C-space.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/tmux.h b/tmux.h
index c55d7e08..0107858e 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.94 2007-11-22 18:09:43 nicm Exp $ */
+/* $Id: tmux.h,v 1.95 2007-11-22 19:17:01 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -380,6 +380,17 @@ struct screen {
int mode;
};
+/* Screen redraw selection. */
+struct screen_draw_sel {
+ int flag;
+
+ u_int sx;
+ u_int sy;
+
+ u_int ex;
+ u_int ey;
+};
+
/* Screen redraw context. */
struct screen_draw_ctx {
struct screen *s;
@@ -393,6 +404,8 @@ struct screen_draw_ctx {
u_int attr;
u_int colr;
+
+ struct screen_draw_sel sel;
};
/* Screen display access macros. */
@@ -774,6 +787,7 @@ void screen_set_cell(struct screen *, u_int, u_int, u_char, u_char, u_char);
void screen_draw_start(struct screen_draw_ctx *,
struct screen *, struct buffer *, u_int, u_int);
void screen_draw_stop(struct screen_draw_ctx *);
+int screen_check_selection(struct screen_draw_ctx *, u_int, u_int);
void screen_draw_get_cell(struct screen_draw_ctx *,
u_int, u_int, u_char *, u_char *, u_char *);
void screen_draw_move(struct screen_draw_ctx *, u_int, u_int);