From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#30429: 27.0.50; Emacs TERMINFO "xterm-direct" "efaq" example not working Date: Mon, 12 Feb 2018 17:51:09 +0200 Message-ID: <83sha6yzo2.fsf@gnu.org> References: <873727rmaj.fsf@aol.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1518451618 28609 195.159.176.226 (12 Feb 2018 16:06:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 12 Feb 2018 16:06:58 +0000 (UTC) Cc: 30429@debbugs.gnu.org To: Live System User , Rami =?UTF-8?Q?Ylim=C3=A4ki?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 12 17:06:53 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elGcl-00064X-1T for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Feb 2018 17:06:35 +0100 Original-Received: from localhost ([::1]:46626 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elGem-0003em-Hm for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Feb 2018 11:08:40 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39334) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elGOj-0006ia-AA for bug-gnu-emacs@gnu.org; Mon, 12 Feb 2018 10:52:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1elGOg-0004NH-JA for bug-gnu-emacs@gnu.org; Mon, 12 Feb 2018 10:52:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60208) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1elGOg-0004NB-G6 for bug-gnu-emacs@gnu.org; Mon, 12 Feb 2018 10:52:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1elGOg-0008QB-9f for bug-gnu-emacs@gnu.org; Mon, 12 Feb 2018 10:52: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: Mon, 12 Feb 2018 15:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30429 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30429-submit@debbugs.gnu.org id=B30429.151845069232337 (code B ref 30429); Mon, 12 Feb 2018 15:52:02 +0000 Original-Received: (at 30429) by debbugs.gnu.org; 12 Feb 2018 15:51:32 +0000 Original-Received: from localhost ([127.0.0.1]:39872 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elGOC-0008PU-2S for submit@debbugs.gnu.org; Mon, 12 Feb 2018 10:51:32 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:47807) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elGOB-0008PI-0D for 30429@debbugs.gnu.org; Mon, 12 Feb 2018 10:51:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1elGO1-0003pb-SI for 30429@debbugs.gnu.org; Mon, 12 Feb 2018 10:51:25 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51149) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elGO1-0003pP-NH; Mon, 12 Feb 2018 10:51:21 -0500 Original-Received: from [176.228.60.248] (port=2642 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1elGO0-0001St-WC; Mon, 12 Feb 2018 10:51:21 -0500 In-reply-to: <873727rmaj.fsf@aol.com> (message from Live System User on Sun, 11 Feb 2018 21:09:40 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:143202 Archived-At: > From: Live System User > Date: Sun, 11 Feb 2018 21:09:40 -0500 > > The example in the "efaq" Info file gives the following > > TERM=xterm-direct emacs -nw > > When I execute this, as stated, I get an Emacs session > WITHOUT any colors -- even "M-x list-colors-display" > does not show any colors. > > However, if I change this to the following, I see colors > displayed: > > TERM=xterm-direct2 emacs -nw > > [Note the "2" in "xterm-drect2"] > > Here is the definition for the setab/setaf parameters for > each: > > > > xterm-direct2: > > # Emacs 26.1 and later support direct color mode in terminals, using a > # combination of user-defined capabilities and ncurses-dependent function > # calls. We will not include that here. > # > # Here is a first revision, which (disregarding the reuse of colors 1-7 which > # is of interest only to the numerically illiterate), is compatible with other > # terminal descriptions written for curses. It relies upon the extended range > # for numeric capabilities provided in ncurses 6.1: > xterm+direct2|xterm with direct-color indexing, > [...] > > xterm-direct2|xterm with direct-color indexing (old), > use=xterm+direct2, use=xterm+titlestack, use=xterm, > [...] > setab=\E[%?%p1%{8}%<%t4%p1%d%e48\:2\:%p1%{65536}%/%d\:%p1%{256}%/%{255}%&%d\:%p1%{255}%&%d%;m, > setaf=\E[%?%p1%{8}%<%t3%p1%d%e38\:2\:%p1%{65536}%/%d\:%p1%{256}%/%{255}%&%d\:%p1%{255}%&%d%;m, > > > > > > xterm-direct: > > # That in turn had a problem: in the original patch submitted for KDE konsole > # in 2006, the submitter and the developer alike overlooked a "color space > # identifier" parameter. This version provides for that parameter: > xterm+direct|xterm with direct-color indexing, > [...] > setab=\E[%?%p1%{8}%<%t4%p1%d%e48\:2\:\:%p1%{65536}%/%d\:%p1%{256}%/%{255}%&%d\:%p1%{255}%&%d%;m, > setaf=\E[%?%p1%{8}%<%t3%p1%d%e38\:2\:\:%p1%{65536}%/%d\:%p1%{256}%/%{255}%&%d\:%p1%{255}%&%d%;m, > > > > > > > Between the two ("xterm-direct"and "xerm-direct2"), I see > the diffeence in at least "\:2\:\:" and "\:2\:". > respectively -- "xterm-direct" has an additioal "\:" > > > > > So, should Emacs be changed to accommadate the missing > parameter ("\:" as in "xterm-direct")?? > > Or should the information in "efaq" be changed to specify > "xterm-direct2"? > > Or...? > > Can anyone else confirm that colors are not displayed > in Emacs TTY when using TERMINFO's 6.1 definition of > "xterm-direct" (setab/setaf)? Thanks for reporting this. Rami, could you please take a look?