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
Back to
Seekers of Perl Wisdom