The stupid question is the question not asked | |
PerlMonks |
Re^5: 'rgb_palette' - Term::ANSIColor Helper -- errors on strawberryby pryrt (Abbot) |
on Aug 17, 2022 at 20:38 UTC ( [id://11146203]=note: print w/replies, xml ) | Need Help?? |
It's down to the version of Term::ANSIColor. I had Strawberry 5.30.0.1's default Term::ANSIColor v4.06, and it gave me the same error Discipulus saw. I tried ... And everything but the r0g0b0 worked†; the r0g0b0 gave Invalid attribute name r0g0b0 at -e line 1. I then realized that since kcott was using v5.36, there was probably a newer Term::ANSIColor , so then I ran cpanm Term::ANSIColor, which installed 5.01. When I ran my same batch script with the updated module, it worked without the error. So Discipulus, you need to update Term::ANSIColor. Per their change list, rNNNgNNNbNNN notation was added in 5.00. (To get the colors to work, I did use the VirtualTerminalLevel = 1 that the AM recommended) edit: †: with full 24 bit color working fine for the red, green, blue, and purple, using manual escape sequences.
In Section
Cool Uses for Perl
|
|