From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: chohag--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#69598: 29.2; colour support based on $TERM value not terminfo database Date: Thu, 07 Mar 2024 17:32:38 +0000 Message-ID: <202403071732.427HWear369011@zeus.jtan.com> References: <202403062301.426N1ms7277304@zeus.jtan.com> <86o7bqk06u.fsf@gnu.org> Reply-To: chohag@jtan.com Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12433"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 69598@debbugs.gnu.org, chohag@jtan.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 07 18:47:51 2024 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 1riHqR-00030S-1H for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 07 Mar 2024 18:47:51 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1riHqA-0005ON-Q2; Thu, 07 Mar 2024 12:47:34 -0500 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 1riHq7-0005Ng-HS for bug-gnu-emacs@gnu.org; Thu, 07 Mar 2024 12:47:31 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1riHq7-0005iB-9J for bug-gnu-emacs@gnu.org; Thu, 07 Mar 2024 12:47:31 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1riHqc-0005i5-Oc for bug-gnu-emacs@gnu.org; Thu, 07 Mar 2024 12:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: chohag@jtan.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Mar 2024 17:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69598 X-GNU-PR-Package: emacs Original-Received: via spool by 69598-submit@debbugs.gnu.org id=B69598.170983363621855 (code B ref 69598); Thu, 07 Mar 2024 17:48:02 +0000 Original-Received: (at 69598) by debbugs.gnu.org; 7 Mar 2024 17:47:16 +0000 Original-Received: from localhost ([127.0.0.1]:54831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1riHpq-0005gL-Qz for submit@debbugs.gnu.org; Thu, 07 Mar 2024 12:47:16 -0500 Original-Received: from 236-he.filtered.junkemailfilter.com ([184.105.182.236]:54654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1riHcW-0005G8-W3 for 69598@debbugs.gnu.org; Thu, 07 Mar 2024 12:33:31 -0500 Original-Received: from [184.105.182.254] (port=53382 helo=mailout.jtan.com) (helo=mailout.jtan.com) by outscan.junkemailfilter.com with esmtp (JEF) id 1riHbv-0005JK-Sb (on interface=184.105.182.200); Thu, 07 Mar 2024 09:32:51 -0800 Original-Received: from mail.jtan.com (localhost [127.0.0.1]) by mailout.jtan.com (Postfix) with ESMTP id 916D1F8854E; Thu, 7 Mar 2024 17:32:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=jtan.com; s=jtan8; t=1709832761; bh=Q+Q5t0CdWM0dzMZCFgXLydCv31TqtYoVquaOuFpWwy4=; h=From:To:cc:Subject:References:Date:From:Reply-To:To:Date:Subject; b=j2ZRcdtU2af9xqzN56+xKt9TiRRoR0fsRX2mARnB5moukR2Cvi++7/OcgpoXbdZvu KvovsS50hB1AgAnlGIRZkeIZV5XmoLIv556xXAyspllzcz5MQeu3OEgK9nr1/2nbJC 1JofoR44FplvNRzYQEFgWKo+rCc0bE1qJSLTIJoWFxFkUczG3PMEtTR4s4gImKkwwN 6dt0uUO4Suh0JkX3d/mGMPoBYzFgCr9TW4wMu5HyiSPW/z49p7pNADPL7dC3hww1q1 aOGcmCgT0NChgOnqukGQugpfC+gbEMyM3NJzCWba+h3Re65uk3v3ES8c6zvoWwvXd4 gFJZd1n2kE4ng== Original-Received: from zeus.jtan.com (localhost [127.0.0.1]) by mail.jtan.com with ESMTPS id 427HWeFH369012 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 7 Mar 2024 17:32:41 GMT Original-Received: (from chohag@localhost) by zeus.jtan.com (8.15.2/8.14.4/Submit) id 427HWear369011; Thu, 7 Mar 2024 17:32:40 GMT In-reply-to: <86o7bqk06u.fsf@gnu.org> Comments: In-reply-to Eli Zaretskii message dated "Thu, 07 Mar 2024 08:47:37 +0200." Content-ID: <89762.1709832758.1@llama.datum> X-Spamfilter-host: outscan.junkemailfilter.com - http://www.junkemailfilter.com X-Key-ID: ZWxpekBnbnUub3JnIGNob2hhZ0B6ZXVzLmp0YW4uY29tIDIwMjQtMDMtMDcgMDk6MzI6NTEuODk5IDFyaUhidi0wMDA1SkstU2I= X-Content-flags: affect carefully certainly compiling customisation direct discovering documented freebsd image info night number-text re reports ships stars term termcap terminal terminals terminfo time-ref via work X-Domain-list: jtan.com gnu.org X-Outscan: http://www.junkemailfilter.com X-Mailman-Approved-At: Thu, 07 Mar 2024 12:47:11 -0500 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:281181 Archived-At: Eli Zaretskii writes: > > ** 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=3Dtruecolor' in the environment. Thi= s is > useful on systems such as FreeBSD which ships only with "etc/termcap". > > *** Emacs will now use 24-bit colors on terminals that support "Tc" ca= pability. > This is in addition to previously-supported ways of discovering 24-bit > color support: either via the "RGB" or "setf24" capabilities, or if > the 'COLORTERM' environment variable is set to the value "truecolor". > > Did you try the COLORTERM=3Dtruecolor setting? I did now, in a new non-xterm terminal which does display all colours in emacs if $TERM is xterm-direct, and no joy (only lists 8 colours). I also performed this sequence on a linux (Debian 6.1.67-1 (2023-12-12)) box in xterm (379) now that my cat has vacated it: $ export TERM=3Dxterm-direct $ emacs -nw # Version 28.2 $ echo 'fancy|Fancy Term,use=3Dxterm-direct,' > fancy.info $ tic fancy.info $ export TERM=3Dfancy $ emacs -nw In the first emacs, list-colors-display listed (I presume) 256 colours. Certainly a lot and with the X names (it does not name them nicely if the terminal reports 256 colours). In the second it listed 8. Emacs has no configuration on that box (it's for compiling). I recall testing the RGB capability late last night despite not seeing it documented anywhere and that did not work. I shall experiment with the Tc capability and RGB more carefully and see what effect they have nevertheless I think the above sequence now repeated on two distinct operating systems is quite telling. Both systems have little or no customisation beyond the base image apart from installed packages. Certainly nothing that should affect terminfo (apart from running tic). Cheers Matthew