GNU bug report logs -
#33915
please document how to use more than 8 colors with ls / dircolors
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#33915: please document how to use more than 8 colors with ls / dircolors
which was filed against the coreutils package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 33915 <at> debbugs.gnu.org.
--
33915: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=33915
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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
[Message part 3 (message/rfc822, inline)]
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)
This bug report was last modified 6 years and 144 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.