Term::SpinnerA progress spinner for command-line programs | |
Download |
Term::Spinner Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Brandon L Black
- Publisher web site:
- http://search.cpan.org/~blblack/
Term::Spinner Tags
Term::Spinner Description
A progress spinner for command-line programs Term::Spinner is a Perl module that provides a simple one-character spinner for command-line programs. You can use this to keep the user from getting bored while your program performs a long operation.You can override the array of graphical characters used to draw the spinner (by default, -, , |, /, and x for "finished").It clears the spinner for re-drawing by using a sequence of backspace, space, backspace. I've found this works for me on all of the terminals I use, without having to get into all the $TERM types and various special escape sequences.In the future, I may add support for using escape sequences for well-known terminal types, if it can be done reliably.Try perl examples/various.pl in this distribution to see some sample spinners in action.SYNOPSIS use Term::Spinner; my $spinner = Term::Spinner->new(); while(... doing something ...) { $spinner->advance(); # Do things... } undef $spinner; # clears final spinner output by default. Requirements: · Perl
Term::Spinner Related Software