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 18:31:20 +0000 Message-ID: <202403071831.427IVMWs374766@zeus.jtan.com> References: <202403062301.426N1ms7277304@zeus.jtan.com> <86o7bqk06u.fsf@gnu.org> <202403071732.427HWear369011@zeus.jtan.com> <86sf120w9y.fsf@gnu.org> Reply-To: chohag@jtan.com Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17116"; 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 Fri Mar 08 01:38:05 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 1riOFQ-0004DU-69 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 08 Mar 2024 01:38:04 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1riOEv-0003p8-PH; Thu, 07 Mar 2024 19:37:33 -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 1riOEu-0003oL-Bh for bug-gnu-emacs@gnu.org; Thu, 07 Mar 2024 19:37:32 -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 1riOEu-0000tn-3z for bug-gnu-emacs@gnu.org; Thu, 07 Mar 2024 19:37:32 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1riOFP-00031F-65 for bug-gnu-emacs@gnu.org; Thu, 07 Mar 2024 19:38:03 -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: Fri, 08 Mar 2024 00:38:03 +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.170985824211493 (code B ref 69598); Fri, 08 Mar 2024 00:38:03 +0000 Original-Received: (at 69598) by debbugs.gnu.org; 8 Mar 2024 00:37:22 +0000 Original-Received: from localhost ([127.0.0.1]:55525 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1riOEi-0002zG-Vc for submit@debbugs.gnu.org; Thu, 07 Mar 2024 19:37:22 -0500 Original-Received: from 238-he.filtered.junkemailfilter.com ([184.105.182.238]:47144) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1riIXB-0007EO-Cm for 69598@debbugs.gnu.org; Thu, 07 Mar 2024 13:32:03 -0500 Original-Received: from [184.105.182.254] (port=51440 helo=mailout.jtan.com) (helo=mailout.jtan.com) by outscan.junkemailfilter.com with esmtp (JEF) id 1riIWa-0006xp-6U (on interface=184.105.182.200); Thu, 07 Mar 2024 10:31:24 -0800 Original-Received: from mail.jtan.com (localhost [127.0.0.1]) by mailout.jtan.com (Postfix) with ESMTP id A9D76F88590; Thu, 7 Mar 2024 18:31:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=jtan.com; s=jtan8; t=1709836283; bh=SUk2L0Wb3+/l+GdR5thCZfUgmHkhLAb0+MrYtgxdaEc=; h=From:To:cc:Subject:References:Date:From:Reply-To:To:Date:Subject; b=Q9UEVCsPakA3Ihifovhgt7r5JDPyAFL6xKfmfoepX2GUGu4B5GDEeztm4twjmJX5g 76m+IWIWy2IIdKN3vwitHuP1R/k5My1l5zDqhQdAUcOQ5gyX6xHxO9j35diz/oF9DD LonDNfkry6C18SF3AHDAZFw6gB2VuJ49pb7T9/0tc00qr0dNfw3YW1avA8XMlR05+x d2rrWRsNdiPpBVGJvUq7Ee8oVsnmgXXyHkEE2nUY/Kofxe09+cSsOyEIcpmbKBT7al cOeku+y5UQ9rDFkT5mY2cYCNeYsBzBoC/SENh8jtDqKkTHc+h4TvJYSLeTYKR+HGAo AiX6EGOCskhnQ== Original-Received: from zeus.jtan.com (localhost [127.0.0.1]) by mail.jtan.com with ESMTPS id 427IVMB2374767 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 7 Mar 2024 18:31:23 GMT Original-Received: (from chohag@localhost) by zeus.jtan.com (8.15.2/8.14.4/Submit) id 427IVMWs374766; Thu, 7 Mar 2024 18:31:22 GMT In-reply-to: <86sf120w9y.fsf@gnu.org> Comments: In-reply-to Eli Zaretskii message dated "Thu, 07 Mar 2024 19:47:05 +0200." Content-ID: <73134.1709836280.1@llama.datum> X-Spamfilter-host: outscan.junkemailfilter.com - http://www.junkemailfilter.com X-Key-ID: ZWxpekBnbnUub3JnIGNob2hhZ0B6ZXVzLmp0YW4uY29tIDIwMjQtMDMtMDcgMTA6MzE6MjQuMjE1IDFyaUlXYS0wMDA2eHAtNlU= X-Content-flags: blocks certainly chance clearly compiling computers confirm direct discovers email here info information number-text probably problem provided quick re reports term terminal terminfo time-ref transcript unique whatev X-Domain-list: jtan.com gnu.org X-Outscan: http://www.junkemailfilter.com X-Mailman-Approved-At: Thu, 07 Mar 2024 19:37:20 -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:281197 Archived-At: Eli Zaretskii writes: > > 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=xterm-direct > > $ emacs -nw # Version 28.2 > > $ echo 'fancy|Fancy Term,use=xterm-direct,' > fancy.info > > $ tic fancy.info > > $ export TERM=fancy > > $ 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). > > So I guess you will need to step with a debugger through the code in > term.c which discovers and initializes the color-related capabilities, If there's something you would like me to look for then I can but I am highly sceptical of the idea that it is isolated to something unique about my computers here. Besides you can see clearly in term.c that there are no references to xterm in the strings and hopefully none hidden behind macros (there is one to xterm+direct in a comment describing where hard-coded defaults are from, which is one of the xterm-direct building blocks), so whatever is going wrong is likely to be somewhere else, such as a misunderstanding deeper within the emacs runtime. > and see what's going on there on your system. Just from the Systems. Plural. Linux and BSD. I could probably open an xterm on something else somehow but the chance of the same problem on two distinct systems being caused by a local issue is very low. Did you confirm presence of the bug with the transcript I provided? > information you provided, it is very hard to guess what could be the > culprit. It's a lot harder for me. I only use emacs. What more information do you need? Here's another bit from a quick test while writing this email (in the unadulterated-Debian xterm that's still open): $ echo 'xterm-naughty|Naughty Term,use=xterm-direct,' >> fancy.info $ tic fancy.info $ export TERM=xterm-naughty $ emacs -nw That emacs displayed all the colours, so it's not 'xterm-direct' in $TERM that emacs is treating magically, it's 'xterm' (naughty-xterm lists 8 colours, so probably make that /^xterm/). Matthew