From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sebastian Tennant 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: Sat, 18 Mar 2023 17:56:32 +0000 Message-ID: <875yay3pv3.fsf@sebyte.me> References: <87sfe390kv.fsf@sebyte.me> <83h6ujefq1.fsf@gnu.org> <87wn3fs7yw.fsf@gmail.com> <833563e3xc.fsf@gnu.org> <87sfe3s26k.fsf@gmail.com> <83pm97cin8.fsf@gnu.org> <87o7oqsa36.fsf@gmail.com> <83v8iybf49.fsf@gnu.org> <87leju4acd.fsf@sebyte.me> <87wn3eqog7.fsf@gmail.com> <87edpm3xy6.fsf@sebyte.me> <83ileyay8m.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10372"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.3 (gnu/linux) Cc: rpluim@gmail.com, 62237@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 18 18:57:13 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 1pdanm-0002RH-W7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Mar 2023 18:57:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pdang-0000dK-9f; Sat, 18 Mar 2023 13:57:04 -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 1pdane-0000d6-JV for bug-gnu-emacs@gnu.org; Sat, 18 Mar 2023 13:57: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 1pdane-00017F-8y for bug-gnu-emacs@gnu.org; Sat, 18 Mar 2023 13:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pdand-0002ic-W1 for bug-gnu-emacs@gnu.org; Sat, 18 Mar 2023 13:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sebastian Tennant Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Mar 2023 17:57:01 +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.167916220110422 (code B ref 62237); Sat, 18 Mar 2023 17:57:01 +0000 Original-Received: (at 62237) by debbugs.gnu.org; 18 Mar 2023 17:56:41 +0000 Original-Received: from localhost ([127.0.0.1]:49026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pdanJ-0002i2-2h for submit@debbugs.gnu.org; Sat, 18 Mar 2023 13:56:41 -0400 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:39391) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pdanH-0002hn-Ov for 62237@debbugs.gnu.org; Sat, 18 Mar 2023 13:56:40 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id AF8135C0158; Sat, 18 Mar 2023 13:56:34 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sat, 18 Mar 2023 13:56:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sebyte.me; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1679162194; x=1679248594; bh=ZEudp5GcBNyzTz2318qhl5x33mWSFQe6LgR 1D0TakqQ=; b=XUEpD1CuvTwhNRR1azJH+22qD0zgGPvR25lO6KfR6epuDF+NySY CsI6YvpUFQ8dgHfNDQaAOsDzCILzbQXz00ljOCSzwpuq/Mo6rT8je9EKHnkZq+Ni qQlOhFxk4g2jyFQ1RWUuTTuwhbN5yv4Tj2X45L2EIu3KtYudrTglswzEnfCPDKhr 5ujCwXO3f+iax07GpcyIC8rI5MAw9lz2ttNOPqmjdYgeAbbn5K02rds8s+OhVCJW CW+xmBdxmMBNQhv6LjOHyTSSHkW7XrHPEwm/bPOTyezGRmV1zV894H8LbdwSpX1M f6tBE8F8U57fhSc5MQd0EFET7EPTJjjdDFQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1679162194; x=1679248594; bh=ZEudp5GcBNyzTz2318qhl5x33mWSFQe6LgR 1D0TakqQ=; b=m7AaVuS7c+5kfKVDVqsJydgoryzsdmZ/XqbaatfCI+WBH71YU59 pgIVqIDPXqfAHPcdgGX7gJnYXBIzg+NsTkujalg0tX/3KBJFykjo8KFOxdzYcUFX mRhsprILvD0cjbihIzvpByQqeU1tWT1elDc0jqHgqZLII0eoi80fZsK60TKRUz31 u7J1q967MbdCSLJ77U3Fou7s5xAaLLzLmzFFj8Bke4VADVz6phW8fp70iHD1c0jV qJFNTcKmLZcR3tbAR8FTDZB2vWuWlhakE3vEf3ChDIbMaTxjzVwhfqKgfWJIJbwa iOvLwYotj6A3YtkSsUG+0Oib9E8nLrd4luQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdefgedguddtgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufhfffgjkfgfgggtgfesthhqredttderjeenucfhrhhomhepufgv sggrshhtihgrnhcuvfgvnhhnrghnthcuoehsughtsehsvggshihtvgdrmhgvqeenucggtf frrghtthgvrhhnpeetteegueehveeffeevlefgleejuefgveegvefhfeetvdeifefhtddv ieefgfdvieenucffohhmrghinhepuggvsghirghnrdhorhhgpdgrrhgthhhlihhnuhigrd horhhgpdhgnhhomhgvrdhorhhgpdhsphgrfihnrdgttgdpuggrthhtuggsrdhinhhfohen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsvggshi htvgdorhgvthhurhhnqdhprghthhesfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: i9e78401f:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 18 Mar 2023 13:56:34 -0400 (EDT) Original-Received: from sebyte by balor with local (Exim 4.94.2) (envelope-from ) id 1pdanB-0020zx-05; Sat, 18 Mar 2023 17:56:33 +0000 In-Reply-To: <83ileyay8m.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 18 Mar 2023 17:13:45 +0200") 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:258197 Archived-At: Quoth Eli Zaretskii on Sat, 18 Mar 2023 17:13:45 +0200: >> From: Sebastian Tennant >> Cc: Eli Zaretskii , 62237@debbugs.gnu.org >> Date: Sat, 18 Mar 2023 15:01:53 +0000 >> >> [=E2=80=A6] >> >> According to: >> >> https://packages.debian.org/search?keywords=3Dscreen >> >> Debian bookworm (the next stable release) will ship screen version >> 4.9.0. I've downloaded the deb and grepped the manpage and the >> string "truecolor" is nowhere to be found so it looks as if screen >> shipped by Debian will lack support for truecolor for some years to >> come. > > According to this: > > https://bbs.archlinux.org/viewtopic.php?id=3D249670 > > true color support in 'screen' will be released in version 5, and the > 4.x branch of 'screen' doesn't support it. This is consistent with > the fact that you built 'screen' from their mast branch, and it > announces itself as version 4.99, i.e. the development version of > v5.x. I guess an entry in etc/PROBLEMS about this is in order. > > What is still a mystery to me is why does GNOME Terminal set > COLORTERM=3Dtruecolor in the environment. Does it assume that 'screen' > will not be used or something? Or does GNOME itself support true > color? Debian bullseye (stable) ships GNOME Terminal version 3.38.3, tagged/released 4th Feb 2021: https://gitlab.gnome.org/GNOME/gnome-terminal/-/commits/3.38.3 Yet, this commit, made 26th April 2014: https://gitlab.gnome.org/GNOME/gnome-terminal/-/commits/1d5c1b6ca6373c1301= 494edbc9e43c3e6a9c9aaf/ reads: screen: Stop setting COLORTERM env var [=E2=80=A6] COLORTERM is a long-obsolete slang-only variable used to work around broken termcap/terminfo entries. Hmm... Turns out GNOME Terminal uses VTE (Virtual TErminal): https://gitlab.gnome.org/GNOME/vte and COLORTERM is set to =E2=80=98truecolor=E2=80=99 in function merge_envir= on, on line 261 of file src/spawn.cc: https://gitlab.gnome.org/GNOME/vte/-/blob/master/src/spawn.cc As to why, I've written to Christian Persch and I shall update this bug report as soon as I receive a response. --=20 Dorothy Annan Trevor Tennant database - DATTdb http://dattdb.info