GNU bug report logs - #33915
please document how to use more than 8 colors with ls / dircolors

Previous Next

Package: coreutils;

Reported by: Vincent Lefevre <vincent <at> vinc17.net>

Date: Sun, 30 Dec 2018 01:22:01 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 33915 in the body.
You can then email your comments to 33915 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#33915; Package coreutils. (Sun, 30 Dec 2018 01:22:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Vincent Lefevre <vincent <at> vinc17.net>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Sun, 30 Dec 2018 01:22:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Vincent Lefevre <vincent <at> vinc17.net>
To: bug-coreutils <at> gnu.org
Subject: ls / dircolors should support more than 8 colors
Date: Sun, 30 Dec 2018 02:21:15 +0100
ls / dircolors should support more than 8 colors.

First, "dircolors -p" says:

# Below are the color init strings for the basic file types. A color init
# string consists of one or more of the following numeric codes:
# Attribute codes:
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
# Text color codes:
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
# Background color codes:
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white

But one can get bright colors without bold by using 90, 91, etc.
This is useful with gnome-terminal.

I think that this should be documented.

Support for more than 16 colors could be nice...

-- 
Vincent Lefèvre <vincent <at> vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)




Information forwarded to bug-coreutils <at> gnu.org:
bug#33915; Package coreutils. (Sun, 30 Dec 2018 02:11:01 GMT) Full text and rfc822 format available.

Message #8 received at 33915 <at> debbugs.gnu.org (full text, mbox):

From: Vincent Lefevre <vincent <at> vinc17.net>
To: 33915 <at> debbugs.gnu.org
Subject: Re: ls / dircolors should support more than 8 colors
Date: Sun, 30 Dec 2018 03:10:51 +0100
On 2018-12-30 02:21:15 +0100, Vincent Lefevre wrote:
> But one can get bright colors without bold by using 90, 91, etc.
> This is useful with gnome-terminal.
> 
> I think that this should be documented.
> 
> Support for more than 16 colors could be nice...

Actually this is also a lack of documentation. After looking at
"tput setaf ..." and "tput setab ..." output in 256-color mode,
one can use things like:

  38;5;<foreground color number>;48;5;<background color number>

-- 
Vincent Lefèvre <vincent <at> vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)




Changed bug title to 'please document how to use more than 8 colors with ls / dircolors' from 'ls / dircolors should support more than 8 colors' Request was from Vincent Lefevre <vincent <at> vinc17.net> to control <at> debbugs.gnu.org. (Sun, 30 Dec 2018 02:41:02 GMT) Full text and rfc822 format available.

Reply sent to Pádraig Brady <P <at> draigBrady.com>:
You have taken responsibility. (Mon, 31 Dec 2018 13:21:01 GMT) Full text and rfc822 format available.

Notification sent to Vincent Lefevre <vincent <at> vinc17.net>:
bug acknowledged by developer. (Mon, 31 Dec 2018 13:21:01 GMT) Full text and rfc822 format available.

Message #15 received at 33915-done <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Vincent Lefevre <vincent <at> vinc17.net>, 33915-done <at> debbugs.gnu.org
Subject: Re: bug#33915: ls / dircolors should support more than 8 colors
Date: Mon, 31 Dec 2018 05:20:42 -0800
On 29/12/18 18:10, Vincent Lefevre wrote:
> On 2018-12-30 02:21:15 +0100, Vincent Lefevre wrote:
>> But one can get bright colors without bold by using 90, 91, etc.
>> This is useful with gnome-terminal.
>>
>> I think that this should be documented.
>>
>> Support for more than 16 colors could be nice...
> 
> Actually this is also a lack of documentation. After looking at
> "tput setaf ..." and "tput setab ..." output in 256-color mode,
> one can use things like:
> 
>   38;5;<foreground color number>;48;5;<background color number>
> 
Addressed with:
https://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=d1de585

thanks




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 29 Jan 2019 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 86 days ago.

Previous Next


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