in reply to Creating a Sparkle in perl
You can get the equivalent of a cls without going to the shell if you use escape sequences:
A couple of the other escapes I use fairly frequently are:use Win32::CONSOLE::ANSI; # (This is only required in Windows) print "\e[H\e[J\n"; # Escape-H "homes" the cursor # Escape-J clears to end-of-screen
print "\e[K"; # Clear to end-of-line printf "\e[%d;%dH", $row, $col; # Positions cursor at given row & col +umn
|
|---|