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.bugs Subject: bug#62237: 28.1 or higher: 24-bit true color breaks colours in Emacsen built without X under GNU Screen Date: Fri, 17 Mar 2023 18:42:43 +0200 Message-ID: <83zg8bcosc.fsf@gnu.org> References: <87sfe390kv.fsf@sebyte.me> <83h6ujefq1.fsf@gnu.org> <87y1nv4af0.fsf@sebyte.me> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18168"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62237@debbugs.gnu.org To: Sebastian Tennant Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 17 17:43:11 2023 Return-path: Envelope-to: geb-bug-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 1pdDAc-0004ZU-Ok for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 17 Mar 2023 17:43:10 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pdDAV-0000Hi-NR; Fri, 17 Mar 2023 12:43:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pdDAU-0000Ha-SL for bug-gnu-emacs@gnu.org; Fri, 17 Mar 2023 12:43:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pdDAU-0006fH-JC for bug-gnu-emacs@gnu.org; Fri, 17 Mar 2023 12:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pdDAU-0005em-Fd for bug-gnu-emacs@gnu.org; Fri, 17 Mar 2023 12:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 Mar 2023 16:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62237 X-GNU-PR-Package: emacs Original-Received: via spool by 62237-submit@debbugs.gnu.org id=B62237.167907137021725 (code B ref 62237); Fri, 17 Mar 2023 16:43:02 +0000 Original-Received: (at 62237) by debbugs.gnu.org; 17 Mar 2023 16:42:50 +0000 Original-Received: from localhost ([127.0.0.1]:45488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pdDAH-0005eK-Jl for submit@debbugs.gnu.org; Fri, 17 Mar 2023 12:42:50 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40538) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pdDAG-0005e8-9p for 62237@debbugs.gnu.org; Fri, 17 Mar 2023 12:42:48 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pdDAA-0006dQ-JB; Fri, 17 Mar 2023 12:42:42 -0400 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=hTDDfKNQP8YeKDLWyuvaiZ12b8+TYCTsBazMJMkNLNo=; b=l6PTr79TAuAV P3Xw87P8nGlZd02rMGZGetsqo8z/TNpKl/Tt+hCeHL9FZ46dpsXAWt0hvcpQ5XORZ13abq+fIL8aZ Jxb6HOxH/S1UTfbUHjGai3dX3pSt9cRze7rThhxU4IsjYTz4+nZkCIOZ5fyqmIw7/ts96QuhK5JI6 LWeGZ4ClHjh51SYai3hWbKjuXMBpAWg0ynuY/D6nj+bQqt4Jo1qLN6ZSRv7r1Pux4JWit4WJMdVHw JBY/G2ry97BwpUOAg6B/RLUR+8dfAlcz7mDjDYUF4WSjr7fwyGh9FbsVkKzwimDqViSWHuqPcWYJl sRT80R4rJQcnP4uOBmh4ZQ==; Original-Received: from [87.69.77.57] (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 1pdDAA-0007XU-2D; Fri, 17 Mar 2023 12:42:42 -0400 In-Reply-To: <87y1nv4af0.fsf@sebyte.me> (message from Sebastian Tennant on Fri, 17 Mar 2023 16:20:19 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:258094 Archived-At: > From: Sebastian Tennant > Cc: 62237@debbugs.gnu.org > Date: Fri, 17 Mar 2023 16:20:19 +0000 > > > First, if you can build the latest emacs-29 branch of the Emacs Git > > repository, please try that and tell whether the problem persists or > > have been solved in the meantime. > > The photos happen to show an Emacs I built from master a couple of > days ago, i.e. Emacs 30.0.50. If you'd still like me to test branch > emacs-29, then let me know and I will happily do so. No, Emacs 30 is good enough. (Your report says Emacs 28.1, which is why I asked.) > ** Emacs can support 24-bit color TTY without terminfo database. > If your text-mode terminal supports 24-bit true color, but your system > lacks the terminfo database, you can instruct Emacs to support 24-bit > true color by setting 'COLORTERM=truecolor' in the environment. This is > useful on systems such as FreeBSD which ships only with "etc/termcap". > > This lead me to investigate whether or not COLORTERM was set in my > environment. I'm running Debian bullseye and terminfo is installed > but, nevertheless, GNOME Terminal sets COLORTERM=truecolor by default. What is TERM set to on that system? > > Finally, please show the display produced by "M-x > > list-colors-display" in both cases: when COLORTERM=truecolor is and > > isn't set. It is important for us to know how many colors Emacs > > uses in each situation. > > I've updated the screenshots to show the output of > #'list-colors-display. Here are the links again, for your > convenience. > > https://download.sebyte.me/misc/truecolor-active.png > https://download.sebyte.me/misc/truecolor-inactive.png This seems to say that your terminal isn't compatible with what Emacs assumes under COLORTERM=truecolor. It also says that your terminal actually supports only 88 colors. So you should unset COLORTERM in your environment, or use another terminal emulator (like 256-color Xterm or some really true-color emulator).