[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] term/rxvt: Enable bracketed paste mode

From: Daniel Gröber
Subject: [PATCH] term/rxvt: Enable bracketed paste mode
Date: Mon, 2 Mar 2020 03:00:46 +0100

rxvt-unicode uses the same escape sequences as xterm so just re-use
the xterm function to enable it.

The xterm-rxvt-function-map keymap already has

    (define-key map "\e[200~" [xterm-paste])

so we're already handling the paste sequence and only need to enable

Tested on rxvt-unicode version 9.22.
 lisp/term/rxvt.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lisp/term/rxvt.el b/lisp/term/rxvt.el
index ca6c468f52..d0a98e9618 100644
--- a/lisp/term/rxvt.el
+++ b/lisp/term/rxvt.el
@@ -171,7 +171,11 @@
   (xterm-register-default-colors rxvt-standard-colors)
   ;; This recomputes all the default faces given the colors we've just set up.
-  (tty-set-up-initial-frame-faces))
+  (tty-set-up-initial-frame-faces)
+  ;; Unconditionally enable bracketed paste mode: terminals that don't
+  ;; support it just ignore the sequence.
+  (xterm--init-bracketed-paste-mode))
 ;; rxvt puts the default colors into an environment variable
 ;; COLORFGBG.  We use this to set the background mode in a more

reply via email to

[Prev in Thread] Current Thread [Next in Thread]