PC's Website
PBar: A command line/CLI progress bar for Perl

Intro

I got sick of using dots to show simple script activity and progress. There didn't seem to be any modules which displayed activity and progress (at least not in the way I like), so I wrote my own.

Features

Supports three styles of progress display:

  1. Simple: Activity spinner on its own.
  2. Progress: Activity spinner, progress bar and percentage complete.
  3. Label: Activity spinner, user contributed text.
The Progress bar width may be set to any size, even multi-line.

The Label's user contributed text can be anything you like. Eg: "Record: 13 of 150. A: 45. B: 10.45. C: 43.6%".

Screenshot

An exciting (?!) screenshot:

Above: Progress Bar on the left, Spinner and Percent Complete on the right. It only uses the part of the line beginning where you left off, and clears its content when it finishes. So you can finish up by reporting your own text message (in the screenshot example, "Done.").

Manual

The Manual has the details.

See demo.pl in the archive for working examples. It's commented (!).

License

BSD License.

Known Bugs

None known. Reports always welcome.

Download

PBar-0.06.zip (3509 Bytes) released on 2008-11-11. See Change log for more info.

For all Perl command-line platforms; Unix-like or Windows. (Tests OK on Windows with ActivePerl).