GNU bug report logs - #39827
[PATCH] dircolors: add *direct* to TERM matching

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: coreutils; Reported by: L A Walsh <coreutils@HIDDEN>; Keywords: patch; merged with #49745; dated Fri, 28 Feb 2020 17:01:02 UTC; Maintainer for coreutils is bug-coreutils@HIDDEN.
Forcibly Merged 39827 49745. Request was from Pádraig Brady <P@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 28 Feb 2020 18:17:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 28 13:17:15 2020
Received: from localhost ([127.0.0.1]:33763 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1j7kCI-0004wz-L8
	for submit <at> debbugs.gnu.org; Fri, 28 Feb 2020 13:17:14 -0500
Received: from lists.gnu.org ([209.51.188.17]:34012)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <nl6720@HIDDEN>) id 1j7kCG-0004wp-O4
 for submit <at> debbugs.gnu.org; Fri, 28 Feb 2020 13:17:13 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:56225)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <nl6720@HIDDEN>) id 1j7kCF-00037k-E3
 for bug-coreutils@HIDDEN; Fri, 28 Feb 2020 13:17:12 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: *
X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50,
 FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,URIBL_BLOCKED autolearn=disabled
 version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <nl6720@HIDDEN>) id 1j7kCE-0006XR-A2
 for bug-coreutils@HIDDEN; Fri, 28 Feb 2020 13:17:11 -0500
Received: from mail-lj1-x243.google.com ([2a00:1450:4864:20::243]:35894)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <nl6720@HIDDEN>)
 id 1j7kCB-0006Vh-KJ; Fri, 28 Feb 2020 13:17:07 -0500
Received: by mail-lj1-x243.google.com with SMTP id r19so4373735ljg.3;
 Fri, 28 Feb 2020 10:17:07 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=cyFQfRGL/5DqgXKKmaGtHlhWy5SUcd2i433vQ4UTYs0=;
 b=Q4NRoYu1T0mnh6UZDI1/VXafonA0gqUtGxaFm7HymbJ6dHkcl7owyUmWxwhaECLoQA
 fQKZil01eovmcG1oORybsBEd1aikeJIKGcCQHTm0+Qre9o4LoXaofxGKTqXqi0dgWAyJ
 nBfcg/mIH7C9JfT4yPuUWm+DOuKPq0IqwClKLhillunBd0WiUDxpTez3v7tVAc0OxRNd
 2GGZdb0GMVjvkHmDptBsgtdRIZ4SYbM6jULB42+PgUB+1w2NbX2DAGFqAXQ5kdtQxiDr
 Qa9QAhZV3CoAfxVzApcnubKjYeJsMfvonRv2ham51n3lY8TDXOQCHMzkLsLZVzYmr3Df
 oSAg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=cyFQfRGL/5DqgXKKmaGtHlhWy5SUcd2i433vQ4UTYs0=;
 b=mJD/xCsH3sMbfsIRhU4+IgoKZqFyqgjGh2HqWndqVuRWrv/V53wIbACtWMjfpExro0
 OZm7RARlUCXbP2+ly1a8/sUQOStHn1oWQInTAm2Q7pVCKxiO00vOQ7w7im1ho6BPKA6X
 ZOBwBBeJvVCtEQDvyKfiAcXI3KZdxHowSiaUuT4HYlnfMfWmEYaRlmROuJ+eVO7fMeuM
 kyHy0UIBr9cLSqbpmSZG6sa4cLoTay4Wf7b2hulPGIYHdMJMMKuu/g7qZtftmRDmugXz
 VoIWjognTg2MKoa08sy5puyQ3uJ7tsy2jGaYPj3YFgBkTmS2zjFX473yyQIfo7NF7o1t
 l0Xg==
X-Gm-Message-State: ANhLgQ3U9CRt8ujqO91cXXWJtjESOR0ew6bzVXFW9FhMtkYKFXvIHxss
 1shHMGqXmTfCXZOMovLiw0c5wz4W
X-Google-Smtp-Source: ADFU+vsRSe9PWyCesPTs/oQNIHcWnE+IfXUHRlSSjj86ssGOPjLu1tIyfpewANqfLcKqzTGFC/CaLg==
X-Received: by 2002:a2e:8e6e:: with SMTP id t14mr3741551ljk.149.1582913825948; 
 Fri, 28 Feb 2020 10:17:05 -0800 (PST)
Received: from localhost (balticom-231-46.balticom.lv. [83.99.231.46])
 by smtp.gmail.com with ESMTPSA id b20sm6108189ljp.20.2020.02.28.10.17.05
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 28 Feb 2020 10:17:05 -0800 (PST)
From: nl6720 <nl6720@HIDDEN>
To: L A Walsh <coreutils@HIDDEN>, coreutils@HIDDEN
Subject: Re: [PATCH] dircolors: add *direct* to TERM matching
Date: Fri, 28 Feb 2020 20:17:04 +0200
Message-ID: <4511235.GXAFRqVoOG@walnut>
In-Reply-To: <5E594734.5020701@HIDDEN>
References: <20200228090733.11277-1-nl6720@HIDDEN>
 <5E594734.5020701@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2a00:1450:4864:20::243
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: submit
Cc: Coreutils <bug-coreutils@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)

On Friday, 28 February 2020 19:00:36 EET L A Walsh wrote:
> xterm-TrueColor
> and xterm-24bit
> I've heard of, but direct?  Isn't that a direct serial line
> connection?
> 
> But suffice it to say, I haven't seen any _concensus_ on a name
> or terminal-name for that feature.
> 
> Certainly TrueColor or 24-bit (or maybe 32) would be more descriptive
> that something used for a direct connetion?
> 

That's the term I found in
https://invisible-island.net/ncurses/ncurses.faq.html#xterm_16MegaColors
and https://invisible-island.net/xterm/terminfo.html (search for the phrase 
"direct color").

The point of this patch is for dircolors to support TERM values like:
alacritty-direct
iterm2-direct
kitty-direct
konsole-direct
mintty-direct
mlterm-direct
nsterm-direct
st-direct
vscode-direct
vte-direct
xterm+direct
xterm+direct2
xterm+indirect
xterm-direct
xterm-direct2

Some of them are already matched by "xterm*", but that's beside the point.

> On 2020/02/28 01:07, nl6720 wrote:
> > * src/dircolors.hin: Add *direct* to match terminals that
> > support direct colors (24-bit color / TrueColor).
> 
> ---
>     Direct colors isn't an industry term that I've ever heard of.
> Besides, it takes about 13 bits per color to represent full color, so
> 16-bits seems likely as an upper bound using 64-bits total (upper 16 for
> alpha?).
> 
> > ---
> > 
> >  src/dircolors.hin | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > diff --git a/src/dircolors.hin b/src/dircolors.hin
> > index 8f795bc99..b22643dbb 100644
> > --- a/src/dircolors.hin
> > +++ b/src/dircolors.hin
> > @@ -17,6 +17,7 @@ TERM con[0-9]*x[0-9]*
> > 
> >  TERM cons25
> >  TERM console
> >  TERM cygwin
> > 
> > +TERM *direct*
> > 
> >  TERM dtterm
> >  TERM gnome
> >  TERM hurd








Information forwarded to bug-coreutils@HIDDEN:
bug#39827; Package coreutils. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 28 Feb 2020 17:00:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 28 12:00:47 2020
Received: from localhost ([127.0.0.1]:33735 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1j7j0J-0002aN-9q
	for submit <at> debbugs.gnu.org; Fri, 28 Feb 2020 12:00:47 -0500
Received: from lists.gnu.org ([209.51.188.17]:46376)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <coreutils@HIDDEN>) id 1j7j0H-0002aE-Fh
 for submit <at> debbugs.gnu.org; Fri, 28 Feb 2020 12:00:45 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:60645)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <coreutils@HIDDEN>) id 1j7j0E-00049J-Sk
 for bug-coreutils@HIDDEN; Fri, 28 Feb 2020 12:00:44 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: *
X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50,KHOP_HELO_FCRDNS
 autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <coreutils@HIDDEN>) id 1j7j0D-0007Hc-Fc
 for bug-coreutils@HIDDEN; Fri, 28 Feb 2020 12:00:42 -0500
Received: from ishtar.tlinx.org ([173.164.175.65]:57888
 helo=Ishtar.sc.tlinx.org)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <coreutils@HIDDEN>)
 id 1j7j0D-0007GH-5O; Fri, 28 Feb 2020 12:00:41 -0500
Received: from [192.168.3.12] (Athenae [192.168.3.12])
 by Ishtar.sc.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id
 01SH0acj020211; Fri, 28 Feb 2020 09:00:38 -0800
Message-ID: <5E594734.5020701@HIDDEN>
Date: Fri, 28 Feb 2020 09:00:36 -0800
From: L A Walsh <coreutils@HIDDEN>
User-Agent: Thunderbird
MIME-Version: 1.0
To: nl6720 <nl6720@HIDDEN>, Coreutils <coreutils@HIDDEN>
Subject: Re: [PATCH] dircolors: add *direct* to TERM matching
References: <20200228090733.11277-1-nl6720@HIDDEN>
In-Reply-To: <20200228090733.11277-1-nl6720@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no
 timestamps) [generic] [fuzzy]
X-Received-From: 173.164.175.65
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: submit
Cc: Coreutils <bug-coreutils@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

xterm-TrueColor
and xterm-24bit
I've heard of, but direct?  Isn't that a direct serial line
connection?

But suffice it to say, I haven't seen any _concensus_ on a name
or terminal-name for that feature.

Certainly TrueColor or 24-bit (or maybe 32) would be more descriptive
that something used for a direct connetion?


On 2020/02/28 01:07, nl6720 wrote:
> * src/dircolors.hin: Add *direct* to match terminals that
> support direct colors (24-bit color / TrueColor).
>   
---
    Direct colors isn't an industry term that I've ever heard of. 
Besides, it takes about 13 bits per color to represent full color, so 
16-bits seems likely as an upper bound using 64-bits total (upper 16 for 
alpha?).


> ---
>  src/dircolors.hin | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/dircolors.hin b/src/dircolors.hin
> index 8f795bc99..b22643dbb 100644
> --- a/src/dircolors.hin
> +++ b/src/dircolors.hin
> @@ -17,6 +17,7 @@ TERM con[0-9]*x[0-9]*
>  TERM cons25
>  TERM console
>  TERM cygwin
> +TERM *direct*
>  TERM dtterm
>  TERM gnome
>  TERM hurd
>   




Acknowledgement sent to L A Walsh <coreutils@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-coreutils@HIDDEN. Full text available.
Report forwarded to bug-coreutils@HIDDEN:
bug#39827; Package coreutils. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 15 Sep 2021 14:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.