in reply to ANSI escape sequences
Try using the module Win32::Console::ANSI, and read its documentation. It should do what you want.
For example:
use strict; use warnings; use Win32::Console::ANSI; print "If you can read this, CSI is not working.\n"; print "\033[2J" ; # Clear screen print "If this is the first line displayed, CSI is OK.\n";
By the way, you need to use '#' as a comment character in Perl ("/* ... */" and "//" are for C and C++).
|
|---|