From: dxld@darkboxed.org
To: emacs-devel@gnu.org
Cc: "Daniel Gröber" <dxld@darkboxed.org>
Subject: [PATCH v2 1/3] term/rxvt: Enable bracketed paste mode
Date: Wed, 4 Mar 2020 01:46:12 +0100 [thread overview]
Message-ID: <df8ed11c814805b4239dde155c6666915fff6091.1583282261.git.dxld@darkboxed.org> (raw)
In-Reply-To: <cover.1583282261.git.dxld@darkboxed.org>
From: Daniel Gröber <dxld@darkboxed.org>
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
next prev parent reply other threads:[~2020-03-04 0:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` dxld [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=df8ed11c814805b4239dde155c6666915fff6091.1583282261.git.dxld@darkboxed.org \
--to=dxld@darkboxed.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).