From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: checking for light or dark background Date: Tue, 08 Feb 2022 05:29:21 +0200 Message-ID: <83y22mvxwu.fsf@gnu.org> References: <838rut77h2.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11666"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 08 04:33:29 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nHHFw-0002sm-L5 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 08 Feb 2022 04:33:28 +0100 Original-Received: from localhost ([::1]:46286 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHHFs-0006DD-BD for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 07 Feb 2022 22:33:25 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44024) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHHCB-0005Jg-SU for help-gnu-emacs@gnu.org; Mon, 07 Feb 2022 22:29:35 -0500 Original-Received: from [2001:470:142:3::e] (port=47276 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHHCB-0001VK-JB for help-gnu-emacs@gnu.org; Mon, 07 Feb 2022 22:29:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=rfNGt8VMaF8yIpudc5JaXXuMIlw76JBMWNnVVCo2ZI4=; b=jmN5CEpw8huD ZG0y+vaqOEG4kWsuylt53me35ZSpZuJg1B1Sgb1hcllqyxpD5xOmiJxkqqo0RlgJu/qhgDxFyqtDu E5MyRQnNVgoi7ZKn068zvgPfx/7F3WEtkbYo3qmWQxficjbj/4y0rGQ5Hhpu90Wyvj7XXXifrLkBl o4rSzXbY7gkWVIW5Lw+yHk5LO9SQM78xwU778R97UJHN02OLty5xRJOpVleKopGkg7dp+ooPBJx41 pCUDBB+7PqsJdRBNlmjuQQKUbjXJr5KIHahdVNsL27fID0ufandKkhxNB3opNxd/nAGqO1eGweXPi px1BGQzL3I4cAbDcunC6Kw==; Original-Received: from [87.69.77.57] (port=2901 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHHC9-0000nl-Nr for help-gnu-emacs@gnu.org; Mon, 07 Feb 2022 22:29:34 -0500 In-Reply-To: (message from James Cloos on Mon, 07 Feb 2022 20:33:36 -0500) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:135820 Archived-At: > From: James Cloos > 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 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.