Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.5.2beta

Request #14524 Custom text on update
Submitted: 2008-08-18 22:45 UTC
From: temp Assigned:
Status: Open Package: Console_ProgressBar (version 0.5.2beta)
PHP Version: 5.2.6 OS:
Roadmaps: (Not assigned)    
Subscription  


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 18 + 28 = ?

 
 [2008-08-18 22:45 UTC] temp (Stephan Wentz)
Description: ------------ Would be nice if I could provide a custom text for each update() that I call, with an own %placeholder%. Could be an optional second parameter for update(). Background: We have a process that runs through 140 steps in a few minutes, and I'd like to see the current step that is being processed, not just the current percentage. Nevertheless: Great work! Test script: --------------- $bar = new Console_ProgressBar('* %fraction% [%bar%] %percent%' | %text%, '=>', '-', 76, 2); $bar->update(1, 'I am doing this'); sleep(5); $bar->update(1, 'I am doing that'); sleep(5); echo PHP_EOL; Expected result: ---------------- * 1/2 [===>---] 50,00% | I am doing this * 2/2 [=====>] 100,00% | I am doing that (you know what I mean... ;-) ) Actual result: -------------- nothing ;-)

Comments

 [2010-06-02 13:03 UTC] jespino (Jesús Espino)