NAME

Text::ProgressBar::BouncingBar - a short section of bar bounces from left to right and back

VERSION

version 0.2

SYNOPSIS

use Text::ProgressBar::BouncingBar;

my $prevbar = Text::ProgressBar->new(maxval => 300, widgets  => [Text::ProgressBar::Percentage->new(), Text::ProgressBar::BouncingBar->new()]);
$prevbar->start();
for my $i (1..300) {
    sleep 0.01;
    $prevbar->update($i+1);
}
$prevbar->finish;

DESCRIPTION

A short section of bar bounces from left to right and back indicating that the program is busy but not indicating how much progress has been made.

Updates the progress bar and its subcomponents. It inherites all attribute of 'Bar'. The drawing ascii characters can be changed during calling class constructor or by calling the corresponding methods. Example of defalut output

|            #        |

METHODS

update

handler for redrawing current regions within the area. (Inherited from Widget.)

AUTHOR

Farhad Fouladi, <farhad at cpan.org>

LICENSE AND COPYRIGHT

Copyright 2012 Farhad Fouladi.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.