in reply to Re: Text Animation in Perl
in thread Text Animation in Perl
Disclaimer: this will work on Unix, no idea about Windows or other OSes.my $clearchr; if (eval { require Term::Cap }) { my $terminal = Tgetent Term::Cap { TERM => undef }; $clearchr = $terminal->Tputs("cl"); } if ($clearchr eq '') { $clearchr = `clear`; }
|
|---|