>>>>> On Mon, 16 Oct 2000 18:59:28 +0100 (BST), Edward Avis <[EMAIL PROTECTED]> said:
> 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.
What about Term::ProgressBar? Term is already there, Console not, and
this is definitely not limited to the console, any term can use it.
--
andreas