From: Juliusz Chroboczek <Juliusz.Chroboczek@pps.jussieu.fr>
To: emacs-devel@gnu.org
Subject: Wrong value of background-mode on dark XTerm
Date: Tue, 02 Jun 2009 00:32:28 +0200 [thread overview]
Message-ID: <7itz2zr3er.fsf@lanthane.pps.jussieu.fr> (raw)
Running 23.0.94.1 on an ``xterm -rv'' (reverse-video), I get
(frame-parameter nil 'background-mode)
==> light
which oviously reads to almost illegible text in certain modes.
With recent XTerm versions, the background colour can be retrieved with
the escape sequence ``Operating System Controls''
ESC ] 1 1 ; ? ESC \
which returns an escape sequence in the same format, but with the ``?''
replaced with an RGB specification
ESC ] 1 1 ; rgb:0000/0000/0000 ESC \
I have no idea what this escape sequence does to older XTerms, but the
XTerm version number can be retrieved with ``Send Device Attributes''
ESC [ > c
which returns something like
ESC [ > 0 ; 2 4 2 ; 0 c
where the 242 is the XTerm patchlevel.
Juliusz
next reply other threads:[~2009-06-01 22:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-01 22:32 Juliusz Chroboczek [this message]
2009-08-11 5:03 ` Wrong value of background-mode on dark XTerm Dan Nicolaescu
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=7itz2zr3er.fsf@lanthane.pps.jussieu.fr \
--to=juliusz.chroboczek@pps.jussieu.fr \
--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).