From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: James Cloos Newsgroups: gmane.emacs.help Subject: Re: checking for light or dark background Date: Mon, 07 Feb 2022 20:33:36 -0500 Message-ID: References: <838rut77h2.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17345"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 08 02:34:34 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 1nHFOr-0004Hy-NX for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 08 Feb 2022 02:34:34 +0100 Original-Received: from localhost ([::1]:60600 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHFOq-0001UD-2n for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 07 Feb 2022 20:34:32 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46410) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHFOB-0001Tx-Vt for help-gnu-emacs@gnu.org; Mon, 07 Feb 2022 20:33:52 -0500 Original-Received: from ore.jhcloos.com ([192.40.56.151]:59282) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHFO7-00007Q-Lf; Mon, 07 Feb 2022 20:33:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jhcloos.com; s=ore17; t=1644284023; bh=LC9IVmoPEK7N/mhzrygQKyahpXC/g59HFJuhwA/J1aE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=iel4+t2dyQYWhWNQyBmNITMjPekIr124iTBlYBTjTbU0TW+4EafD+LUByWNcPQuMX OZIn5B36mBYlNAmaDa5QTan1p6Vyasqq8jvCAbjg9zNFpMMJSNF92yziHYAF0Rf/jg QQuEWIcP25RWMk+f6o487Kdg1hxEwrKBFK3cWcs1uYpEF7BK1VvmvG3S/OHfj0Qmuq pXnOY8vuzPpovQsmlozu5M/IW0Y4o9jrOsesqTmQpdl9mTZiWP96Nk7CSyxSBbmn3e zIcotDaQls8uMEt3o9WEVesMODnzU8r061SfZhhK06vLcxFb4FYE6hHJspyyP3BPV9 fZY7zV98pw0zw== Original-Received: by ore.jhcloos.com (Postfix, from userid 10) id 1D3D51E34A; Tue, 8 Feb 2022 01:33:43 +0000 (UTC) Original-Received: by carbon.jhcloos.org (Postfix, from userid 500) id 686AAB2A335; Tue, 8 Feb 2022 01:33:36 +0000 (UTC) In-Reply-To: <838rut77h2.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 02 Feb 2022 14:56:09 +0200") Face: iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAACVBMVEX///8ZGXBQKKnCrDQ3 AAAAJElEQVQImWNgQAAXzwQg4SKASgAlXIEEiwsSIYBEcLaAtMEAADJnB+kKcKioAAAAAElFTkSu QmCC Copyright: Copyright 2022 James Cloos OpenPGP: 0x997A9F17ED7DAEA6; url=https://jhcloos.com/public_key/0x997A9F17ED7DAEA6.asc OpenPGP-Fingerprint: E9E9 F828 61A4 6EA9 0F2B 63E7 997A 9F17 ED7D AEA6 Original-Lines: 14 Received-SPF: pass client-ip=192.40.56.151; envelope-from=cloos@jhcloos.com; helo=ore.jhcloos.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:135817 Archived-At: >>>>> "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. -JimC -- James Cloos OpenPGP: 0x997A9F17ED7DAEA6