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: Mon, 20 Mar 2023 08:57:45 +0000 Message-ID: <87v8iv94vq.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> <871qlms7h3.fsf@gmail.com> <83r0tmbb11.fsf@gnu.org> <87sfe2qo5u.fsf@gmail.com> <83lejub31r.fsf@gnu.org> <87o7onrf8o.fsf@gmail.com> 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="19349"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 62237@debbugs.gnu.org To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 20 09:58:14 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 1peBLI-0004oK-HU for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 20 Mar 2023 09:58:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1peBLA-0006G5-3g; Mon, 20 Mar 2023 04:58: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 1peBL8-0006Fx-Fc for bug-gnu-emacs@gnu.org; Mon, 20 Mar 2023 04:58: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 1peBL8-0006ku-6s for bug-gnu-emacs@gnu.org; Mon, 20 Mar 2023 04:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1peBL8-0002gV-2i for bug-gnu-emacs@gnu.org; Mon, 20 Mar 2023 04:58: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: Mon, 20 Mar 2023 08:58: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.167930267710308 (code B ref 62237); Mon, 20 Mar 2023 08:58:02 +0000 Original-Received: (at 62237) by debbugs.gnu.org; 20 Mar 2023 08:57:57 +0000 Original-Received: from localhost ([127.0.0.1]:53656 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peBL2-0002gB-P4 for submit@debbugs.gnu.org; Mon, 20 Mar 2023 04:57:57 -0400 Original-Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:33303) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peBL0-0002fy-Qx for 62237@debbugs.gnu.org; Mon, 20 Mar 2023 04:57:55 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id E41E03200943; Mon, 20 Mar 2023 04:57:48 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 20 Mar 2023 04:57:49 -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= 1679302668; x=1679389068; bh=usS4ci7+GMi3VJ7wt1ao9cSXnRyWLGvQOGi 7Q1JXCl0=; b=OvZMbqluBXzZ+pL+DyS7+ac/lE/kWlY2mQ284dTvnP686JARgo3 o4l/aRGFxFSiecQVBCla4IXuRovpb8Dtq/6XxZ1LDiLI8jgnNgOzE1ncWGhqrj87 XxFc20FnXlcCM2PmuFYVUrm+VeXOX6eCWzngXIlOzzdAfnvU3BsIRhc9Lc9HNie/ +VmOvtTIlnG80JNpaqb9TwpMzvDzH7f8XArfH6TWO3ugYO1NLkPLGm2Na9/bwaeX DaCGcCzyGLokVciWlig7bLDFSLAi3KPdJaobVSXEec8wgICfwZ6uyKGtms70tQZi XUZeUtqDmNl0vO1bVg4azSlnEC1ydYUj/Ig== 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= 1679302668; x=1679389068; bh=usS4ci7+GMi3VJ7wt1ao9cSXnRyWLGvQOGi 7Q1JXCl0=; b=YPXgyvXZu4nbW/2kpkRctfc2yEaYFXgJCf8H66LSSOEeheNNrUP mZSaryR+XErb68HHHsjuvhP5wEAwv6OBOxx8k+bgiR4VPuvxwlsgK6k+Pou3xfjv i9xD3x4Yyj+X9sz4iF0vfstpizu9GANfw6mbEW6k5V0PAeRQ6y+2MnHQoTHkxBal XBzND5ir/owf6i56N6lrvidtVOXPeq8OAGzas9ZFeXqbM+YU7XBZL/Qr88j8rhWO 06ZVwf/3mKKLZzS1P8sg7TOyBVTUX4RgwWmppzRoe1hEeh4ybtpklDRh0Ywv1s4x wzYguEpCJmLtB6pSzkY2lv40iPEC0a7NVsg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdefjedguddvlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufgjfhffkfgfgggtgfesthhqredttderjeenucfhrhhomhepufgv sggrshhtihgrnhcuvfgvnhhnrghnthcuoehsughtsehsvggshihtvgdrmhgvqeenucggtf frrghtthgvrhhnpedvgfettdeuueeufeekvdejhedvteeggefhheejgffhheeigeetfeeg gfelkeeghfenucffohhmrghinhepshgtrhgvvghnrdgsuhhsihhnvghsshenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsvggshihtvgdorhgv thhurhhnqdhprghthhesfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: i9e78401f:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 20 Mar 2023 04:57:48 -0400 (EDT) Original-Received: from sebyte by balor with local (Exim 4.94.2) (envelope-from ) id 1peBKs-002LP0-0M; Mon, 20 Mar 2023 08:57:46 +0000 In-Reply-To: <87o7onrf8o.fsf@gmail.com> (Robert Pluim's message of "Mon, 20 Mar 2023 09:36:39 +0100") 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:258272 Archived-At: Quoth Robert Pluim on Mon, 20 Mar 2023 09:36:39 +0100: >> [=E2=80=A6] >> Yes, I think in emacs-29. Why "radical"? > > Changing the interpretation of the user=CA=BCs TERM seems pretty radical > to me, even if it will tend to improve users=CA=BC experience. > >>> I guess we could do something with not checking COLORTERM under screen >>> instead. > >> That's a separate issue, from where I stand. Users can unset >> COLORTERM, but their true terminal type will still be "hidden" >> behind the "screen." prefix, won't it? The terminal type is about >> more than just the colors. Or does terminfo know about this >> "screen." business? > > I have both a 'screen.xterm-256color' and a 'xterm-256color' > terminfo file. I don=CA=BCt think terminfo does any prefix stripping, as > there=CA=BCs a whole bunch of screen.$TERM files, which would be > unnecessary if stripping were happening. FWIW, I agree that stripping the 'screen.' prefix isn=E2=80=99t the correct thing to do. (Let's not forget that the issue seems to have bitten only one person in well over a year). > Perhaps the best thing to do is put an entry in etc/PROBLEMS? How about something like this: Emacs >=3D 28.1 respects the value of environment variable COLORTERM and if it is set to 'truecolor', expects the terminal to support 24-bit true colour. GNOME Terminal supports true colour and, unnecessarily, sets COLORTERM=3Dtruecolor to make this clear. GNU Screen 4.X does =CC=B2n=CC=B2o=CC=B2t support true colour. If you sta= rt Emacs at Screen start time (via an entry in your .screenrc), Emacs will inherit the environment and, because of COLORTERM=3Dtruecolor, assume the terminal, i.e. the screen, supports true colour. This will result in broken colours in Emacs. The simplest solution is to unset COLORTERM in the environment before launching screen. Or words to that effect.