PetaMem has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
even using closures if you e.g. want to update only every x
actions), but I donīt know how to do it "right" and "clean" in
a terminal window.
I would like to add some nifty progress-bar-show-status information to my app, which at the moment has only a CLI (Web-frontend and other GUIs planned). How do I a simple
'|' -> '/' -> '-' -> '\' (and then start again)
or some kind of
(0%..........50%..........100%)Donīt get me wrong, I know how to print the information (now
even using closures if you e.g. want to update only every x
actions), but I donīt know how to do it "right" and "clean" in
a terminal window.
Said that, I will try some backspace/escape-sequence hacking
but donīt consider it clean, as there can be several different
terminals and every one with itīs own escape-sequence definition
BTW: Isnīt there a module? :-)
Ciao
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: progress bars
by clintp (Curate) on Jul 09, 2001 at 04:08 UTC | |
Re: progress bars
by cleen (Pilgrim) on Jul 09, 2001 at 01:38 UTC | |
(ar0n: tie version) Re: progress bars
by ar0n (Priest) on Jul 09, 2001 at 04:39 UTC | |
Re: progress bars
by Seumas (Curate) on Jul 09, 2001 at 04:19 UTC | |
Re: progress bars
by PetaMem (Priest) on Nov 04, 2001 at 13:21 UTC | |
Re: progress bars
by John M. Dlugosz (Monsignor) on Jul 09, 2001 at 07:15 UTC |
Back to
Seekers of Perl Wisdom