[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: checking for light or dark background
From: |
Eli Zaretskii |
Subject: |
Re: checking for light or dark background |
Date: |
Tue, 08 Feb 2022 05:29:21 +0200 |
> 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.
Re: checking for light or dark background, James Cloos, 2022/02/07