aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2012-03-07 13:36:19 +0000
committerTiago Cunha <tcunha@gmx.com>2012-03-07 13:36:19 +0000
commit3275e9bd5b4f9d8aa3961d3468fcd6765191fcc3 (patch)
treed4250d114482e2b2101db7428b742702d9a4a48d /tmux.h
parent9d79a56402850ac35c57e35fe39990d84e1fd5fa (diff)
downloadrtmux-3275e9bd5b4f9d8aa3961d3468fcd6765191fcc3.tar.gz
rtmux-3275e9bd5b4f9d8aa3961d3468fcd6765191fcc3.tar.bz2
rtmux-3275e9bd5b4f9d8aa3961d3468fcd6765191fcc3.zip
Sync OpenBSD patchset 1037:
Support "bracketed paste" mode. This adds a -p flag to paste-buffer - if this is used and the application has requested bracketed pastes, then tmux surrounds the pasted text by \033[200~ and \033[201~. Applications like vim can (apparently) use this to avoid, for example, indenting the text. From Ailin Nemui.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tmux.h b/tmux.h
index 4a860295..67fd8025 100644
--- a/tmux.h
+++ b/tmux.h
@@ -569,6 +569,7 @@ struct mode_key_table {
#define MODE_MOUSE_BUTTON 0x40
#define MODE_MOUSE_ANY 0x80
#define MODE_MOUSE_UTF8 0x100
+#define MODE_BRACKETPASTE 0x200
#define ALL_MOUSE_MODES (MODE_MOUSE_STANDARD|MODE_MOUSE_BUTTON|MODE_MOUSE_ANY)
@@ -1879,6 +1880,7 @@ void screen_write_cell(struct screen_write_ctx *,
const struct grid_cell *, const struct utf8_data *);
void screen_write_setselection(struct screen_write_ctx *, u_char *, u_int);
void screen_write_rawstring(struct screen_write_ctx *, u_char *, u_int);
+void screen_write_bracketpaste(struct screen_write_ctx *, int);
/* screen-redraw.c */
void screen_redraw_screen(struct client *, int, int);