unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: checking for light or dark background
Date: Tue, 08 Feb 2022 05:29:21 +0200	[thread overview]
Message-ID: <83y22mvxwu.fsf@gnu.org> (raw)
In-Reply-To: <m3mtj2f8gf.fsf@carbon.jhcloos.org> (message from James Cloos on Mon, 07 Feb 2022 20:33:36 -0500)

> From: James Cloos <cloos@jhcloos.com>
> Cc: help-gnu-emacs@gnu.org
> Copyright: Copyright 2022 James Cloos
> OpenPGP-Fingerprint: E9E9 F828 61A4 6EA9 0F2B  63E7 997A 9F17 ED7D AEA6
> Date: Mon, 07 Feb 2022 20:33:36 -0500
> 
> >>>>> "EZ" == Eli Zaretskii <eliz@gnu.org> writes:
> 
> EZ>   (frame-parameter nil 'background-mode)
> 
> i just tried that in emacs-tty on screen.
> 
> the underlying terminal is black on white, but that (frame-parameter)
> call claimed dark.
> 
> it may work in a gui term, but is not reliable elsewhere.

You didn't tell what terminal you tried this on.  Some of them are
capable of reporting their default background color, others aren't.



  reply	other threads:[~2022-02-08  3:29 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-02  9:26 checking for light or dark background goncholden via Users list for the GNU Emacs text editor
2022-02-02 12:56 ` Eli Zaretskii
2022-02-02 13:25   ` goncholden
2022-02-02 13:27     ` goncholden
2022-02-02 14:41       ` Eli Zaretskii
2022-02-02 16:18         ` goncholden
2022-02-02 14:48       ` Yuri Khan
2022-02-03  4:19         ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-03  4:31           ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-08  1:33   ` James Cloos
2022-02-08  3:29     ` Eli Zaretskii [this message]
2022-02-20 19:30       ` James Cloos
2022-02-20 20:05         ` Eli Zaretskii
2022-02-21 11:16           ` Yuri Khan

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=83y22mvxwu.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@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.
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).