If you use Linux, you may have seen the progress bar printed by
'rpm -Uvh'.  It is a sequence of fifty hash marks.

I've written a module to do the same in Perl:

use Console::ProgressBar;
my $bar = new Console::ProgressBar 'doing things', 100;
foreach (0 .. 100 - 1) {
    # do thing
    update $bar;
}

Output:
doing things: ##################

The bar grows in proportion to the number of things done, so that when 
everything has been done fifty hash marks have been printed.

Is the name Console::ProgressBar okay?  It is just ASCII text, no cursor
movement or other trickery.

-- 
Ed Avis
[EMAIL PROTECTED]

Reply via email to