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: Sat, 18 Mar 2023 12:37:30 +0200 Message-ID: <83r0tmbb11.fsf@gnu.org> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27300"; mail-complaints-to="usenet@ciao.gmane.io" Cc: sdt@sebyte.me, 62237@debbugs.gnu.org To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 18 11:38:21 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 1pdTx7-0006vb-7Z for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Mar 2023 11:38:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pdTwr-00082T-0a; Sat, 18 Mar 2023 06:38:05 -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 1pdTwo-00080i-TC for bug-gnu-emacs@gnu.org; Sat, 18 Mar 2023 06:38:03 -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 1pdTwo-0002wL-L0 for bug-gnu-emacs@gnu.org; Sat, 18 Mar 2023 06:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pdTwo-0002ZC-Ef for bug-gnu-emacs@gnu.org; Sat, 18 Mar 2023 06:38: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: Sat, 18 Mar 2023 10:38: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.16791358579833 (code B ref 62237); Sat, 18 Mar 2023 10:38:02 +0000 Original-Received: (at 62237) by debbugs.gnu.org; 18 Mar 2023 10:37:37 +0000 Original-Received: from localhost ([127.0.0.1]:46351 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pdTwP-0002YW-1r for submit@debbugs.gnu.org; Sat, 18 Mar 2023 06:37:37 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34876) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pdTwM-0002YG-M6 for 62237@debbugs.gnu.org; Sat, 18 Mar 2023 06:37:35 -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 1pdTwH-0002tn-5U; Sat, 18 Mar 2023 06:37:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=9p2u/So88k7i7t3+VAv97GE2/0pUaWaGAIJJsiEqELE=; b=MV2VEcZ/CsVZXDI6cS2d BPPJzdN6WX8hMmm+bjy1h+QZmyI5Xmww7qsC+WDzbvwix6cc/PgwD87xPqu8nks7MQAzxsWgbnEU+ Kan3GdRDz6TMX86dE/RC2YuPnJRZR1j0HQIbOxueaIynd0GGY/clA+1nnL7M9HEDsyLdhBeF6sPpl f+UqtrxPt0IxN7mt2YgLlZFmSlB9TjFlX+KSVSZ/A/UoqF85xwMhYb74vqVFHq0szuVnLCWFKar3v OXDmMSkZTcy0bnlK5ts5SRmEYVpTRRClGnP7E5J2IFNzs3SD8ygqhJGbAdBj8S8bWEU6aSPJxsNok UZiuFeGNHd82yA==; 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 1pdTwG-0004ka-KW; Sat, 18 Mar 2023 06:37:28 -0400 In-Reply-To: <871qlms7h3.fsf@gmail.com> (message from Robert Pluim on Sat, 18 Mar 2023 11:02:16 +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:258157 Archived-At: > From: Robert Pluim > Cc: sdt@sebyte.me, 62237@debbugs.gnu.org > Date: Sat, 18 Mar 2023 11:02:16 +0100 > > >>>>> On Sat, 18 Mar 2023 11:09:10 +0200, Eli Zaretskii said: > > >> From: Robert Pluim > >> Cc: sdt@sebyte.me, 62237@debbugs.gnu.org > >> Date: Sat, 18 Mar 2023 10:05:49 +0100 > >> > >> >>>>> On Fri, 17 Mar 2023 20:55:23 +0200, Eli Zaretskii said: > >> >> machines you are able to do a rlogin and still keep the correct term‐ > --> cap/terminfo entry. The terminal name is put in the $TERM variable of > >> >> all new windows. Screen also sets the $TERMCAP variable reflecting the > >> >> capabilities of the virtual terminal emulated. Notice that, however, on > >> >> machines using the terminfo database this variable has no effect. Fur‐ > >> >> thermore, the variable $WINDOW is set to the window number of each win‐ > >> >> dow. > >> > Eli> This seems to tell how 'screen' figures out the terminal name, not how > Eli> it sets TERM. I asked who and why sets TERM to screen.SOMETHING. > >> > >> screen does: "The terminal name is put in the $TERM variable of all new windows." > > Eli> So how did Emacs ever succeed to work inside screen, then? AFAIK, we > Eli> never supported this form of TERM's value. Is this something > Eli> relatively new? > > I donʼt know, Iʼm a tmuxian ;-) > > Note that emacs works fine, itʼs just the colours that are off, and > people sshʼing in to use screen would tend to set TERM themselves > anyway. Then I guess we should install your proposed fix in init_tty.