Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #18496 [Console] use ANSI escape sequences in ProgressBar overwri…
…te method (alekitto) This PR was squashed before being merged into the 2.7 branch (closes #18496). Discussion ---------- [Console] use ANSI escape sequences in ProgressBar overwrite method | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | maybe | Deprecations? | no | Tests pass? | yes | Fixed tickets | #16957 | License | MIT | Doc PR | Rewritten `overwrite` method in ProgressBar class to use ANSI escape sequences to erase lines. This removes the need to store the last message length as it is not needed to fill the buffer with spaces anymore. As a plus it correctly resets the cursor position while clearing the output If the output is not decorated the behavior has not been changed. Could possibly cause a BC break if testing against the decorated emitted output as binary string Commits ------- b6cca4c [Console] use ANSI escape sequences in ProgressBar overwrite method
- Loading branch information
Showing
2 changed files
with
17 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters