[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 1/3] term/rxvt: Enable bracketed paste mode
From: |
dxld |
Subject: |
[PATCH v2 1/3] term/rxvt: Enable bracketed paste mode |
Date: |
Wed, 4 Mar 2020 01:46:12 +0100 |
From: Daniel Gröber <address@hidden>
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
- [PATCH] term/rxvt: Enable bracketed paste mode, Daniel Gröber, 2020/03/01
- Re: [PATCH] term/rxvt: Enable bracketed paste mode, Stefan Monnier, 2020/03/03
- [PATCH v2 0/3] Improved rxvt support, dxld, 2020/03/03
- [PATCH v2 1/3] term/rxvt: Enable bracketed paste mode,
dxld <=
- [PATCH v2 3/3] term/rxvt: Add terminal-init hook, dxld, 2020/03/03
- [PATCH v2 2/3] term/rxvt: Add window title support, dxld, 2020/03/03
- Re: [PATCH v2 0/3] Improved rxvt support, Stefan Monnier, 2020/03/08
- Re: [PATCH v2 0/3] Improved rxvt support, Daniel Gröber, 2020/03/08
- Re: [PATCH v2 0/3] Improved rxvt support, Stefan Monnier, 2020/03/08