Skip to content

Fix progress bar when previously printed text has color#247

Merged
mrnugget merged 3 commits into
masterfrom
fix-progress-bar
Jul 13, 2020
Merged

Fix progress bar when previously printed text has color#247
mrnugget merged 3 commits into
masterfrom
fix-progress-bar

Conversation

@mrnugget

Copy link
Copy Markdown
Contributor

This change in a previous PR broke the display of the progress bar:

https://github.com/sourcegraph/src-cli/pull/236/files#diff-f88fc84c78d26d5dc5fde4a5223bc866L258

Why did it break? Because the "display progress bar?"-check checked whether the just-printed data ended in a newline or not. That worked until the just mentioned change, after which every line was wrapped in "set color" and "reset color" escape codes. They wouldn't end in \n but in \n\x1b[0m.

The new check fixes the progress bar.

The other two commits fix a typo and remove an unused dependency.

@mrnugget mrnugget requested review from eseliger and ryanslade July 13, 2020 09:54
@mrnugget mrnugget merged commit c8eca18 into master Jul 13, 2020
scjohns pushed a commit that referenced this pull request Apr 24, 2023
* Remove unused dependency in ActionLogger

* Fix typo

* Show progress bar even when printed text has color
@keegancsmith keegancsmith deleted the fix-progress-bar branch November 11, 2025 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants