NAME
Text::ProgressBar::Bar - progress bar which stretches to fill the line
VERSION
version 0.2
SYNOPSIS
use Text::ProgressBar::Bar;
my $pbar = Text::ProgressBar->new(maxval => 300);
$pbar->start();
for my $i (1..300) {
sleep 0.01;
$pbar->update($i+1);
}
$pbar->finish;
DESCRIPTION
A progress bar which stretches to fill the line. The drawing ascii characters can be changed during calling class constructor or by calling the corresponding methods. Example of defalut output
|####### |
ATTRIBUTES
marker
character that moves from left to right default '#'
left
character that specify left margin default '|'
right
character that specify right margin default '|'
fill
fill character default is space ' '
fill_left
fill with fill character, defalut is True
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.