PhpSchool\CliMenu\Terminal\TerminalInterface::moveCursorToColumn PHP 메소드

moveCursorToColumn() 공개 메소드

Move the cursor to a specific column
public moveCursorToColumn ( integer $columnNumber )
$columnNumber integer
    public function moveCursorToColumn($columnNumber);

Usage Example

예제 #1
0
 /**
  * Write some text at a particular column
  *
  * @param int $column
  * @param string $text
  */
 protected function write($text, $column = null)
 {
     $this->terminal->moveCursorToColumn($column ?: $this->x);
     echo $text;
 }