From: dxld@darkboxed.org
To: emacs-devel@gnu.org
Cc: "Daniel Gröber" <dxld@darkboxed.org>
Subject: [PATCH v2 2/3] term/rxvt: Add window title support
Date: Wed, 4 Mar 2020 01:46:13 +0100 [thread overview]
Message-ID: <0ef96db11567cb82987e38b401b7707951b3e5c2.1583282261.git.dxld@darkboxed.org> (raw)
In-Reply-To: <cover.1583282261.git.dxld@darkboxed.org>
From: Daniel Gröber <dxld@darkboxed.org>
---
lisp/term/rxvt.el | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/lisp/term/rxvt.el b/lisp/term/rxvt.el
index d0a98e9618..6250809abb 100644
--- a/lisp/term/rxvt.el
+++ b/lisp/term/rxvt.el
@@ -26,6 +26,16 @@
(require 'term/xterm)
+(defgroup rxvt nil
+ "(U)RXVT support."
+ :version "28.1"
+ :group 'terminals)
+
+(defcustom rxvt-set-window-title nil
+ "Whether Emacs should set window titles to an Emacs frame in RXVT."
+ :version "28.1"
+ :type 'boolean)
+
(defvar rxvt-function-map
(let ((map (make-sparse-keymap)))
(set-keymap-parent map xterm-rxvt-function-map)
@@ -175,7 +185,10 @@
;; Unconditionally enable bracketed paste mode: terminals that don't
;; support it just ignore the sequence.
- (xterm--init-bracketed-paste-mode))
+ (xterm--init-bracketed-paste-mode)
+
+ (when rxvt-set-window-title
+ (xterm--init-frame-title)))
;; 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 ` [PATCH v2 1/3] term/rxvt: Enable bracketed paste mode dxld
2020-03-04 0:46 ` dxld [this message]
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=0ef96db11567cb82987e38b401b7707951b3e5c2.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).