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#69598: 29.2; colour support based on $TERM value not terminfo database Date: Thu, 07 Mar 2024 22:10:30 +0200 Message-ID: <86le6t247d.fsf@gnu.org> References: <202403062301.426N1ms7277304@zeus.jtan.com> <86o7bqk06u.fsf@gnu.org> <202403071732.427HWear369011@zeus.jtan.com> <86sf120w9y.fsf@gnu.org> <202403071831.427IVMWs374766@zeus.jtan.com> <86plw5268n.fsf@gnu.org> <202403071959.427JxJTO382071@zeus.jtan.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13279"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 69598@debbugs.gnu.org To: chohag@jtan.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 07 21:12:11 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 1riK67-0003IN-2X for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 07 Mar 2024 21:12:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1riK5V-0004Bs-2L; Thu, 07 Mar 2024 15:11: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 1riK5T-0004BE-Dg for bug-gnu-emacs@gnu.org; Thu, 07 Mar 2024 15:11: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 1riK5T-0002lk-5l for bug-gnu-emacs@gnu.org; Thu, 07 Mar 2024 15:11:31 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1riK5y-0007Os-Ed for bug-gnu-emacs@gnu.org; Thu, 07 Mar 2024 15:12:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Mar 2024 20:12: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.170984227728375 (code B ref 69598); Thu, 07 Mar 2024 20:12:02 +0000 Original-Received: (at 69598) by debbugs.gnu.org; 7 Mar 2024 20:11:17 +0000 Original-Received: from localhost ([127.0.0.1]:55052 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1riK5E-0007Nb-Pb for submit@debbugs.gnu.org; Thu, 07 Mar 2024 15:11:17 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57912) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1riK5A-0007NK-SI for 69598@debbugs.gnu.org; Thu, 07 Mar 2024 15:11:15 -0500 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 1riK4Y-0002eT-Sp; Thu, 07 Mar 2024 15:10:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=aEEerPrsfZn9fZm+fEYjtRRVimYKs6t73OBdWSNVCGM=; b=QmD0XU1zVMaN XmVXRParz6NBqZZT44r6Khhx5v3CXmm7yxoTTtStsReBE0XsMBSZfbUSMOu2gjqzX2xyjl0NiVzvT H9UocuBK3HuBP/D58+ZTA0V4n6voQLU5C79r+tLZZbUCZTVcGLwuP+UbU0oUzLiEm+bLXfNwLZMgp z/6oOKT6aaSinxCfY9nJjicoIZNOPRc8SfaIhCaV/eA3Qszjpcnph9LrCTay0yjFdF3ceX0Faxsrg Mk3CWAaJXOjsrTkPwZfmxhtu9eX77et7V0073DhfYwZGGZP1tmo1g+9U6zANA7JBW2pYpr5RMdf3O qtxm68AcPfVw2gzGI0yfow==; In-Reply-To: <202403071959.427JxJTO382071@zeus.jtan.com> (chohag@jtan.com) 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:281189 Archived-At: > From: chohag@jtan.com > cc: chohag@jtan.com, 69598@debbugs.gnu.org > Comments: In-reply-to Eli Zaretskii > message dated "Thu, 07 Mar 2024 21:26:32 +0200." > Date: Thu, 07 Mar 2024 19:59:17 +0000 > > But the problem is not with the terminfo entry itself. The new entry > is an exact duplicate of a working terminfo entry (where working > means that list-colors-display lists 256 named colours) and it only > works if the new entry has a name which begins "xterm-". > > This means that somewhere between running the code above which does > detect that 16M colours are available, emacs discards that information > and instead (seems to) decide that support is there based on the > name of the terminal in $TERM. If you or someone else could establish that tty->TN_max_colors receives the correct value of the number of supported colors during initialization, and yet Emacs still doesn't realize those colors unless the TERM name begins with "xterm", we could make some progress, because it could point us to the code which is responsible for this lossage. Right now, I don't know where to look.