first commit

This commit is contained in:
2020-10-20 09:32:09 +02:00
commit e64b18b9a9
4183 changed files with 488526 additions and 0 deletions
@@ -0,0 +1,36 @@
<?php
namespace League\CLImate\TerminalObject\Basic;
final class ClearLine extends Repeatable
{
/**
* Clear the lines.
*
* @return string
*/
public function result()
{
$string = "";
while ($this->count > 0) {
$string .= $this->util->cursor->startOfCurrentLine();
$string .= $this->util->cursor->deleteCurrentLine();
--$this->count;
$string .= $this->util->cursor->up();
}
$string .= $this->util->cursor->down();
return $string;
}
/**
* @inheritdoc
*/
public function sameLine()
{
return true;
}
}