1
0
Fork 0

Add more comments in ConsoleIO, closes #5836

pull/5846/head
Jordi Boggiano 2016-11-06 18:16:45 +01:00
parent 43903a3979
commit f3af3da16f
1 changed files with 3 additions and 0 deletions

View File

@ -206,6 +206,9 @@ class ConsoleIO extends BaseIO
// write the new message
$this->doWrite($messages, false, $stderr, $verbosity);
// In cmd.exe on Win8.1 (possibly 10?), the line can not be cleared, so we need to
// track the length of previous output and fill it with spaces to make sure the line is cleared.
// See https://github.com/composer/composer/pull/5836 for more details
$fill = $size - strlen(strip_tags($messages));
if ($fill > 0) {
// whitespace whatever has left