File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -466,19 +466,16 @@ private function overwrite($message)
466
466
{
467
467
if ($ this ->overwrite ) {
468
468
if (!$ this ->firstRun ) {
469
- // Move the cursor to the beginning of the line
470
- $ this ->output ->write ("\x0D" );
471
-
472
- // Erase the line
473
- $ this ->output ->write ("\x1B[2K " );
474
-
475
469
// Erase previous lines
476
470
if ($ this ->formatLineCount > 0 ) {
477
- $ this -> output -> write ( str_repeat ("\x1B[1A \x1B[2K " , $ this ->formatLineCount )) ;
471
+ $ message = str_repeat ("\x1B[1A \x1B[2K " , $ this ->formatLineCount ). $ message ;
478
472
}
473
+
474
+ // Move the cursor to the beginning of the line and erase the line
475
+ $ message = "\x0D\x1B[2K $ message " ;
479
476
}
480
477
} elseif ($ this ->step > 0 ) {
481
- $ this -> output -> writeln ( '' ) ;
478
+ $ message = PHP_EOL . $ message ;
482
479
}
483
480
484
481
$ this ->firstRun = false ;
You can’t perform that action at this time.
0 commit comments