coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] dircolors: consider COLORTERM sufficient for color


From: Pádraig Brady
Subject: Re: [PATCH] dircolors: consider COLORTERM sufficient for color
Date: Sun, 13 Feb 2022 14:15:27 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Thunderbird/97.0

On 12/02/2022 21:54, Arsen Arsenović wrote:
COLORTERM is an environment used usually to expose truecolor support in
terminal emulators. If a terminal emulator supports truecolor, it is
surely reasonable to assume it also supports 8/16/256 colors.

This implicitly supports foot, alacritty and any other truecolor
terminal emulator with unmatched $TERM.
---
Good evening,

I've noticed dircolors does not work in foot and alacritty, and on previously
raised patches about adding a TERM entry for them the concern of a nongeneric
solution was brought up. This is a valid concern, and as many terminals
(including these two) export COLORTERM to advertise 24-bit color support, it'd
appear to be a good way to pick up on color support.

I did suggest this at:
https://lists.gnu.org/archive/html/coreutils/2021-10/msg00008.html
Though it was pointed out that COLORTERM may not be preserved across ssh etc.
Now doing this would be no worse, so I'm inclined to apply this.

BTW alacritty was just added as an explicitly matched terminal.

cheers,
Pádraig




reply via email to

[Prev in Thread] Current Thread [Next in Thread]