CodeExplorer clearLine example
foreach ($messageLines as $messageLine) { $messageLineLength = Helper::
width(Helper::
removeDecoration($this->output->
getFormatter(),
$messageLine));
if ($messageLineLength >
$this->terminal->
getWidth()) { $lineCount +=
floor($messageLineLength /
$this->terminal->
getWidth());
} } $this->output->
clear($lineCount);
} else { $lineCount =
substr_count($this->previousMessage, "\n"
);
for ($i = 0;
$i <
$lineCount; ++
$i) { $this->cursor->
moveToColumn(1
);
$this->cursor->
clearLine();
$this->cursor->
moveUp();
} $this->cursor->
moveToColumn(1
);
$this->cursor->
clearLine();
} } } elseif ($this->step > 0
) { $message = \PHP_EOL.
$message;
} foreach ($messageLines as $messageLine) { $messageLineLength = Helper::
width(Helper::
removeDecoration($this->output->
getFormatter(),
$messageLine));
if ($messageLineLength >
$this->terminal->
getWidth()) { $lineCount +=
floor($messageLineLength /
$this->terminal->
getWidth());
} } $this->output->
clear($lineCount);
} else { $lineCount =
substr_count($this->previousMessage, "\n"
);
for ($i = 0;
$i <
$lineCount; ++
$i) { $this->cursor->
moveToColumn(1
);
$this->cursor->
clearLine();
$this->cursor->
moveUp();
} $this->cursor->
moveToColumn(1
);
$this->cursor->
clearLine();
} } } elseif ($this->step > 0
) { $message = \PHP_EOL.
$message;
}