This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component
Fabien Potencier 6400b703d4 bug #18496 [Console] use ANSI escape sequences in ProgressBar overwrite 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
2016-04-14 13:51:22 +02:00
..
Asset [2.7] update readme files for new components 2016-03-07 12:06:07 +01:00
BrowserKit Merge branch '2.3' into 2.7 2016-03-04 08:52:28 +01:00
ClassLoader Merge branch '2.3' into 2.7 2016-03-30 12:21:35 +02:00
Config Merge branch '2.3' into 2.7 2016-03-04 08:52:28 +01:00
Console [Console] use ANSI escape sequences in ProgressBar overwrite method 2016-04-14 13:51:20 +02:00
CssSelector Merge branch '2.3' into 2.7 2016-03-04 08:52:28 +01:00
Debug [Debug] Fix case sensitivity checks 2016-03-30 11:14:15 +02:00
DependencyInjection bug #18491 [DependencyInjection] anonymous services are always private (xabbuh) 2016-04-12 17:22:47 +02:00
DomCrawler Merge branch '2.3' into 2.7 2016-04-09 12:56:56 +02:00
EventDispatcher Merge branch '2.3' into 2.7 2016-04-04 19:08:16 +02:00
ExpressionLanguage [2.7] update readme files for new components 2016-03-07 12:06:07 +01:00
Filesystem Merge branch '2.3' into 2.7 2016-04-12 17:21:00 +02:00
Finder Merge branch '2.3' into 2.7 2016-03-10 11:49:29 +01:00
Form Merge branch '2.3' into 2.7 2016-04-09 12:56:56 +02:00
HttpFoundation Merge branch '2.3' into 2.7 2016-04-05 18:36:43 +02:00
HttpKernel [HttpKernel] Fix wrong number of arguments in call of ExceptionListener::logException() 2016-04-14 11:51:32 +02:00
Intl Merge branch '2.3' into 2.7 2016-03-22 09:55:46 +01:00
Locale Merge branch '2.3' into 2.7 2016-03-04 08:52:28 +01:00
OptionsResolver Merge branch '2.3' into 2.7 2016-03-04 08:52:28 +01:00
Process [Process] Consistently use getProcess() in tests 2016-04-12 13:52:58 +02:00
PropertyAccess Merge branch '2.3' into 2.7 2016-04-09 12:56:56 +02:00
Routing fixed CS 2016-03-31 12:00:43 +02:00
Security Merge branch '2.3' into 2.7 2016-04-09 12:56:56 +02:00
Serializer Merge branch '2.3' into 2.7 2016-03-07 14:45:47 +01:00
Stopwatch Merge branch '2.3' into 2.7 2016-03-04 08:52:28 +01:00
Templating fix mocks 2016-03-25 16:52:47 +01:00
Translation [2.7] fix mocking of some methods 2016-03-24 10:06:43 +01:00
Validator Merge branch '2.3' into 2.7 2016-04-02 09:48:01 +02:00
VarDumper Windows 10 version check in just one line 2016-04-04 19:11:39 +02:00
Yaml Merge branch '2.3' into 2.7 2016-03-04 08:52:28 +01:00