diff options
author | Tiago Cunha <tcunha@gmx.com> | 2012-03-07 13:36:19 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2012-03-07 13:36:19 +0000 |
commit | 3275e9bd5b4f9d8aa3961d3468fcd6765191fcc3 (patch) | |
tree | d4250d114482e2b2101db7428b742702d9a4a48d /input.c | |
parent | 9d79a56402850ac35c57e35fe39990d84e1fd5fa (diff) |
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 'input.c')
-rw-r--r-- | input.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1212,6 +1212,9 @@ input_csi_dispatch(struct input_ctx *ictx) case 1049: window_pane_alternate_off(wp, &ictx->cell); break; + case 2004: + screen_write_bracketpaste(&ictx->ctx, 0); + break; default: log_debug("%s: unknown '%c'", __func__, ictx->ch); break; @@ -1264,6 +1267,9 @@ input_csi_dispatch(struct input_ctx *ictx) case 1049: window_pane_alternate_on(wp, &ictx->cell); break; + case 2004: + screen_write_bracketpaste(&ictx->ctx, 1); + break; default: log_debug("%s: unknown '%c'", __func__, ictx->ch); break; |