I need to execute command from Perl script and print it's output, however command output is colored and Perl prints something like that:
ESC[33m sample text ESC[m
instead of coloring sample text.
In other words: I want to know how to handle already colored input in Perl (not how to create colored output)
I would start with the colorstrip function in Term::ANSIColor
uncolor
uncolor takes input from files or standard input and returns in with colors and attributes stripped.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With