Skip Menu |
 

This queue is for tickets about the Term-ANSIColor CPAN distribution.

Report information
The Basics
Id: 118267
Status: resolved
Priority: 0/
Queue: Term-ANSIColor

People
Owner: RRA [...] cpan.org
Requestors: NKH [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: 4.06



Subject: Provide names for all 256 colors
Can we please have ansi17 to ansi255 as valid colors too
Subject: Re: [rt.cpan.org #118267] Provide names for all 256 colors
Date: Wed, 05 Oct 2016 09:35:14 -0700
To: نديم ابن ﺤﻣﻮﺪﺓ الخمير - Nadim Khemir via RT <bug-Term-ANSIColor [...] rt.cpan.org>
From: Russ Allbery <rra [...] cpan.org>
Download (untitled) / with headers
text/plain 1.2k
"نديم ابن ﺤﻣﻮﺪﺓ الخمير - Nadim Khemir via RT" <bug-Term-ANSIColor@rt.cpan.org> writes: Show quoted text
> Wed Oct 05 07:07:08 2016: Request 118267 was acted upon. > Transaction: Ticket created by NKH > Queue: Term-ANSIColor > Subject: Provide names for all 256 colors > Broken in: (no value) > Severity: Wishlist > Owner: Nobody > Requestors: NKH@cpan.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=118267 >
Show quoted text
> Can we please have ansi17 to ansi255 as valid colors too
256-color emulators support ansi0 to ansi15, 24 grey scale colors, and then 216 RGB colors. The second two are available via grey0 through grey24 and rgb000 through rgb555. Were you looking for the grey0 through grey24 and rgb000 through rgb555 names? Or am I missing some other subtlety here? It's really hard to find good documentation for 256-color escapes or naming conventions, so if you know of any good resources, I'd love to read them. -- #!/usr/bin/perl -- Russ Allbery, Just Another Perl Hacker $^=q;@!>~|{>krw>yn{u<$$<[~||<Juukn{=,<S~|}<Jwx}qn{<Yn{u<Qjltn{ > 0gFzD gD, 00Fz, 0,,( 0hF 0g)F/=, 0> "L$/GEIFewe{,$/ 0C$~> "@=,m,|,(e 0.), 01,pnn,y{ rw} >;,$0=q,$,,($_=$^)=~y,$/ C-~><@=\n\r,-~$:-u/ #y,d,s,(\$.),$1,gee,print
Download (untitled) / with headers
text/plain 1.7k
On Wed Oct 05 12:35:32 2016, RRA wrote: Show quoted text
> "نديم ابن ﺤﻣﻮﺪﺓ الخمير - Nadim Khemir via RT" > <bug-Term-ANSIColor@rt.cpan.org> writes: >
> > Wed Oct 05 07:07:08 2016: Request 118267 was acted upon. > > Transaction: Ticket created by NKH > > Queue: Term-ANSIColor > > Subject: Provide names for all 256 colors > > Broken in: (no value) > > Severity: Wishlist > > Owner: Nobody > > Requestors: NKH@cpan.org > > Status: new > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=118267 >
>
> > Can we please have ansi17 to ansi255 as valid colors too
> > 256-color emulators support ansi0 to ansi15, 24 grey scale colors, and > then 216 RGB colors. The second two are available via grey0 through > grey24 and rgb000 through rgb555. Were you looking for the grey0 through > grey24 and rgb000 through rgb555 names? Or am I missing some other > subtlety here? > > It's really hard to find good documentation for 256-color escapes or > naming conventions, so if you know of any good resources, I'd love to read > them. >
I meant having ansi1, ansi2, ansi3, .... ansi255 as valid named, accessing them with their index rather than RGB. most color pallets don't show RGB except this one https://gist.github.com/05b6c2b60bcca99c66e4e09592de4bc0 I also noticed that the empty string is a valid color name for validate_color. as for standard names, x11 names come to mind https://en.wikipedia.org/wiki/X11_color_names oat the bottom of the page there are links to a bunch of colors by name. I am looking for a set of colors (using only the ANSI color) that fit well together, or a list of color paletts with their usage, IE, color X, Y and Z are good for warning at these levels, color A, B, C are good for information, ...if you jhave something like that, I am a taker.
Subject: Re: [rt.cpan.org #118267] Provide names for all 256 colors
Date: Thu, 06 Oct 2016 10:50:01 -0700
To: نديم ابن ﺤﻣﻮﺪﺓ الخمير - Nadim Khemir via RT <bug-Term-ANSIColor [...] rt.cpan.org>
From: Russ Allbery <rra [...] cpan.org>
Download (untitled) / with headers
text/plain 1.2k
"نديم ابن ﺤﻣﻮﺪﺓ الخمير - Nadim Khemir via RT" <bug-Term-ANSIColor@rt.cpan.org> writes: Show quoted text
> I meant having ansi1, ansi2, ansi3, .... ansi255 as valid named, > accessing them with their index rather than RGB.
Ah, I think I understand. You want names that correspond to the underlying code in the escape sequence. Yeah, there doesn't seem to be any drawback in adding this apart from some minor memory consumption. Show quoted text
> as for standard names, x11 names come to mind > https://en.wikipedia.org/wiki/X11_color_names oat the bottom of the page > there are links to a bunch of colors by name.
Unfortunately, there's no mapping from these to ANSI colors. Show quoted text
> I am looking for a set of colors (using only the ANSI color) that fit > well together, or a list of color paletts with their usage, IE, color X, > Y and Z are good for warning at these levels, color A, B, C are good for > information, ...if you jhave something like that, I am a taker.
The only one I'm aware of is Solarized (http://ethanschoonover.com/solarized). -- #!/usr/bin/perl -- Russ Allbery, Just Another Perl Hacker $^=q;@!>~|{>krw>yn{u<$$<[~||<Juukn{=,<S~|}<Jwx}qn{<Yn{u<Qjltn{ > 0gFzD gD, 00Fz, 0,,( 0hF 0g)F/=, 0> "L$/GEIFewe{,$/ 0C$~> "@=,m,|,(e 0.), 01,pnn,y{ rw} >;,$0=q,$,,($_=$^)=~y,$/ C-~><@=\n\r,-~$:-u/ #y,d,s,(\$.),$1,gee,print
Term::ANSIColor 4.06 provides ansi16 through ansi255 as well, as aliases for the other names.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.