Here's a working version. Note that I'm using Term::StatusBar, not Term::ProgressBar. Then again, zentara didn't use T::PB, either :-)
It's pretty peppy, too, on my machine. Might go slower on a slower machine. <snicker>#! /usr/bin/perl use warnings; use strict; use Term::StatusBar; system('clear'); # too lazy to do this right. use constant MAX => 100_000; use Time::HiRes qw(usleep); my $run_progress = Term::StatusBar->new(label => 'Run', totalItems => 10, scale => 1000, ); for (0..10) # the outer run { $run_progress->update(); my $powers_progress = Term::StatusBar->new(label => "Powers$_", startRow => 3, scale => 1000, totalItems => MAX, ); for (0..MAX) { $powers_progress->update(); usleep(100); } }
In reply to Re: Simultaneous Term::ProgressBars?
by Tanktalus
in thread Simultaneous Term::ProgressBars?
by poshboy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |