mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
Merge remote-tracking branch 'origin/support/3.2' into develop
This commit is contained in:
@@ -13,6 +13,7 @@ namespace Symfony\Component\Console\Helper;
|
||||
|
||||
use Symfony\Component\Console\Exception\InvalidArgumentException;
|
||||
use Symfony\Component\Console\Exception\LogicException;
|
||||
use Symfony\Component\Console\Output\ConsoleSectionOutput;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
|
||||
/**
|
||||
@@ -140,7 +141,9 @@ class ProgressIndicator
|
||||
|
||||
$this->message = $message;
|
||||
$this->display();
|
||||
$this->output->writeln('');
|
||||
if (!$this->output instanceof ConsoleSectionOutput) {
|
||||
$this->output->writeln('');
|
||||
}
|
||||
$this->started = false;
|
||||
}
|
||||
|
||||
@@ -207,7 +210,9 @@ class ProgressIndicator
|
||||
*/
|
||||
private function overwrite(string $message): void
|
||||
{
|
||||
if ($this->output->isDecorated()) {
|
||||
if ($this->output instanceof ConsoleSectionOutput) {
|
||||
$this->output->overwrite($message);
|
||||
} elseif ($this->output->isDecorated()) {
|
||||
$this->output->write("\x0D\x1B[2K");
|
||||
$this->output->write($message);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user