in reply to Re: In Term::ANSIColor grey color is present or not.
in thread In Term::ANSIColor grey color is present or not.

grey0 also should work right but for me it is also getting error

Invalid attribute name grey0

  • Comment on Re^2: In Term::ANSIColor grey color is present or not.

Replies are listed 'Best First'.
Re^3: In Term::ANSIColor grey color is present or not.
by Athanasius (Archbishop) on Mar 30, 2022 at 06:53 UTC

    Ok, I dusted off my old Cygwin terminal and got Term::ANSIColor working. grey0 looks the same as black, but prints fine with no error message. grey with no number gives the error message you reported first.

    I don’t know what to suggest. Maybe if you detail your setup (OS, Perl version, Term::ANSIColor version, terminal type) some of the other monks will be able to shed some light.

    Cheers,

    Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

Re^3: In Term::ANSIColor grey color is present or not.
by hippo (Archbishop) on Mar 30, 2022 at 09:57 UTC

    I am unable to reproduce your findings (with version 4.03):

    $ perl -MTerm::ANSIColor -e 'print color("grey0"), "foo\n", color("res +et")' foo $

    🦛