unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] term/rxvt: Enable bracketed paste mode
@ 2020-03-02  2:00 Daniel Gröber
  2020-03-03 20:22 ` Stefan Monnier
  0 siblings, 1 reply; 9+ messages in thread
From: Daniel Gröber @ 2020-03-02  2:00 UTC (permalink / raw)
  To: emacs-devel; +Cc: Daniel Gröber

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
it.

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)
   (rxvt-set-background-mode)
   ;; 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
-- 
2.20.1




^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-03-08 23:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-02  2:00 [PATCH] term/rxvt: Enable bracketed paste mode Daniel Gröber
2020-03-03 20:22 ` Stefan Monnier
2020-03-04  0:46   ` [PATCH v2 0/3] Improved rxvt support dxld
2020-03-04  0:46     ` [PATCH v2 1/3] term/rxvt: Enable bracketed paste mode dxld
2020-03-04  0:46     ` [PATCH v2 2/3] term/rxvt: Add window title support dxld
2020-03-04  0:46     ` [PATCH v2 3/3] term/rxvt: Add terminal-init hook dxld
2020-03-08 18:13     ` [PATCH v2 0/3] Improved rxvt support Stefan Monnier
2020-03-08 19:33       ` Daniel Gröber
2020-03-08 23:20         ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).