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

Request #7407 Fix for bug with ansi_terminal not erasing complete line
Submitted: 2006-04-17 01:33 UTC
From: apinstein at mac dot com Assigned:
Status: Closed Package: Console_ProgressBar (version 0.2)
PHP Version: 5.0.4 OS: mac os x / any?
Roadmaps: (Not assigned)    
Subscription  


 [2006-04-17 01:33 UTC] apinstein at mac dot com (Alan Pinstein)
Description: ------------ Using ansi_terminal=true, if the line length changes b/w updates, there can be leftover chars at the end. This patch fixes it. Test script: --------------- Put this in display($current) just after the printf() // erase to end of line so previous displays of longer length don't still appear if ($this->_options['ansi_terminal']) { print("\x1b[K"); }

Comments

 [2006-04-24 02:03 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2006-04-24 04:17 UTC] apinstein at mac dot com
Ok, i'll try this out. I just saw that you posted 0.4.
 [2006-04-25 15:38 UTC] apinstein at mac dot com
things seem to be fine. the way my code worked the "length" of the line changed a lot. With the way you re-did my patch the line length stays fixed and it isn't a problem. Thanks for incorporating the time-estimate code!