wget/sftp- style progress bar

H

Harry

Hello,

I have a list of length operations I need to carry out. For each item
in this list, I want to display current progress on a single line only
(instead of multiple lines per item) as is done by such programs as
wget and sftp.

Now, I can obviously use the <backspace> character to seek to earlier
point on the current line. But before I do all of that manual and ad
hoc computations, I'm wondering if there's any helpful package that
has already though through this problem... so that I deal only in
higher abstractions such as fields, field lengths, left/right
justified field value, truncate field value (vs extend field length if
value is longer), etc.

Regards,
/HS
 
J

Jürgen Exner

Harry said:
Now, I can obviously use the <backspace> character to seek to earlier
point on the current line. But before I do all of that manual and ad
hoc computations, I'm wondering if there's any helpful package that
has already though through this problem... so that I deal only in
higher abstractions such as fields, field lengths, left/right
justified field value, truncate field value (vs extend field length if
value is longer), etc.

I'm not absolutely sure what you are looking for but maybe Curses will
be of some help.

jue
 
K

Kevin Ryde

Harry said:
... fields, field lengths, left/right
justified field value, truncate field value (vs extend field length if
value is longer), etc.

ProgressMonitor is field oriented and oop-ish. There's other modules in
other or simpler styles that I imagine do the trick too.
 
K

Klaus

I want to display current progress on a single line only

[ snip ]
Now, I can obviously use the <backspace> character to seek to earlier
point on the current line. But before I do all of that manual and ad
hoc computations, I'm wondering if there's any helpful package that
has already though through this problem... so that I deal only in
higher abstractions such as fields, field lengths, left/right
justified field value, truncate field value (vs extend field length if
value is longer), etc.

Maybe Term::Sprog is of some use.

http://search.cpan.org/~keichner/Term-Sprog-0.01/lib/Term/Sprog.pm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,143
Latest member
DewittMill
Top