in reply to Re^3: 'rgb_palette' - Term::ANSIColor Helper -- errors on strawberry
in thread 'rgb_palette' - Term::ANSIColor Helper
Two further notes on win32:
- Anecdotally, I recommend you don't use Win32::Console::ANSI; if you've got the VirtualTerminalLevel = 1 registry setting. It reduced the functionality of the colors when I enabled that line.
- IO::Prompter's prompt() command doesn't seem to handle win32 CRLF newlines correctly: when I hit ENTER like it told me to, it said "' is invalid. Six hexadecimal characters are expected; such as in the table above.". Then when I typed a 6 digit string like 123456 , it said the same thing. I added in some debug statements, and found out the CR was still there. I added $rgb =~ s/[\r]*$//; after $rgb = prompt ... and that fixed the interface for me.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: 'rgb_palette' - Term::ANSIColor Helper -- errors on strawberry
by kcott (Archbishop) on Aug 18, 2022 at 00:34 UTC | |
by Discipulus (Canon) on Aug 18, 2022 at 07:51 UTC | |
by kcott (Archbishop) on Aug 18, 2022 at 10:53 UTC |
In Section
Cool Uses for Perl