-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Progress bar overwrites previous lines if format is multiline. #19133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
rquadling
added a commit
to rquadling/symfony
that referenced
this issue
Jun 21, 2016
Fixes symfony#19133 When a progress bar is first displayed, if it is multi-line, previously output lines are erased, depending upon the number of lines in the progress bar. This patch fixes that be distinguishing between the first display (no erasing of previous output) and subsequent displays of the progress bar.
fabpot
added a commit
that referenced
this issue
Jun 23, 2016
…lays (rquadling) This PR was merged into the 2.7 branch. Discussion ---------- Distinguish between first and subsequent progress bar displays | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #19133 | License | MIT | Doc PR | reference to the documentation PR, if any Fixes #19133 When a progress bar is first displayed, if it is multi-line, previously output lines are erased, depending upon the number of lines in the progress bar. This patch fixes that be distinguishing between the first display (no erasing of previous output) and subsequent displays of the progress bar. Commits ------- 3871e1a Differentiate between the first time a progress bar is displayed and subsequent times
symfony-splitter
pushed a commit
to symfony/console
that referenced
this issue
Jun 23, 2016
…lays (rquadling) This PR was merged into the 2.7 branch. Discussion ---------- Distinguish between first and subsequent progress bar displays | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #19133 | License | MIT | Doc PR | reference to the documentation PR, if any Fixes symfony/symfony#19133 When a progress bar is first displayed, if it is multi-line, previously output lines are erased, depending upon the number of lines in the progress bar. This patch fixes that be distinguishing between the first display (no erasing of previous output) and subsequent displays of the progress bar. Commits ------- 3871e1a Differentiate between the first time a progress bar is displayed and subsequent times
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you have a progress bar whose format is across multiple lines, previously outputted content gets overwritten.
Using Symfony/Console v2.8.7.
outputs
In looking at the code,
\Symfony\Component\Console\Helper\ProgressBar::overwrite()
wants to clear lines based upon the number of lines in the progress bar format. That is fine, except on the first run.A hack could be to not "overwrite" on the first call.
This now makes my code display correctly.
The text was updated successfully, but these errors were encountered: