From 0454f561e92d24453642f12e8b4c345813fa8dd5 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 5 Jun 2014 10:51:46 -0400 Subject: implement bracketed paste mode (fixes #56) --- src/window-xlib.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/window-xlib.c') diff --git a/src/window-xlib.c b/src/window-xlib.c index 788d5a8..6a924ec 100644 --- a/src/window-xlib.c +++ b/src/window-xlib.c @@ -903,7 +903,13 @@ static void runes_window_backend_handle_selection_notify_event( XGetWindowProperty( w->dpy, e->requestor, e->property, 0, 0x1fffffff, 0, AnyPropertyType, &type, &format, &nitems, &left, &buf); + if (t->scr.bracketed_paste) { + runes_pty_backend_write(t, "\e[200~", 6); + } runes_pty_backend_write(t, (char *)buf, nitems); + if (t->scr.bracketed_paste) { + runes_pty_backend_write(t, "\e[201~", 6); + } XFree(buf); } } -- cgit v1.2.3-54-g00ecf