You need Win32::Console::ANSI.
There is not, and never has been, any way to make the 32-bit cmd.exe console sessions honour ANSI escape sequences natively.
There is a method of making the 16-bit command.com dos console emulator do so--by loading ansi.sys--but that suffers from having none of the commands, built-ins and extensions that make cmd.exe a usable command processor.
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco.
Rule 1 has a caveat! -- Who broke the cabal?
| [reply] |
Unless you figure out how to get a Windows console into ANSI mode (there is - or was - a way, IIRC), and then force Term::Screen to believe the terminal is ANSI, you're probably SOL.
What I've done in the past to handle this is to switch between Term::Screen (or something like it) and Win32::Console, based on the current environment.
| [reply] |