Term::ProgressBar

Provide a progress meter on a standard terminal
Download

Term::ProgressBar Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Gabor Szabo
  • Publisher web site:
  • http://search.cpan.org/~szabgab/

Term::ProgressBar Tags


Term::ProgressBar Description

Term::ProgressBar is a Perl module that provides a simple progress bar on the terminal, to let the user know that something is happening, roughly how much stuff has been done, and maybe an estimate at how long remains.A typical use sets up the progress bar with a number of items to do, and then calls update to update the bar whenever an item is processed.Often, this would involve updating the progress bar many times with no user-visible change. To avoid uneccessary work, the update method returns a value, being the update value at which the user will next see a change. By only calling update when the current value exceeds the next update value, the call overhead is reduced.Remember to call the $progress->update($max_value) when the job is done to get a nice 100% done bar.A progress bar by default is simple; it just goes from left-to-right, filling the bar with '=' characters. These are called major characters. For long-running jobs, this may be too slow, so two additional features are available: a linear completion time estimator, and/or a minor character: this is a character that moves from left-to-right on the progress bar (it does not fill it as the major character does), traversing once for each major-character added. This exponentially increases the granularity of the bar for the same width.SYNOPSIS use Term::ProgressBar; $progress = Term::ProgressBar->new ({count => $count}); $progress->update ($so_far);Product's homepage


Term::ProgressBar Related Software