disableCursor() public method

Disable cursor display
public disableCursor ( )
Esempio n. 1
0
 /**
  * Configure the terminal to work with CliMenu
  *
  * @throws InvalidTerminalException
  */
 protected function configureTerminal()
 {
     $this->assertTerminalIsValidTTY();
     $this->terminal->setCanonicalMode();
     $this->terminal->disableCursor();
     $this->terminal->clear();
 }
Esempio n. 2
0
 /**
  * Configure the terminal to work with CliMenu
  *
  * @throws InvalidTerminalException
  */
 protected function configureTerminal()
 {
     if (!$this->terminal->isTTY()) {
         throw new InvalidTerminalException(sprintf('Terminal "%s" is not a valid TTY', $this->terminal->getDetails()));
     }
     $this->terminal->setCanonicalMode();
     $this->terminal->disableCursor();
     $this->terminal->clear();
 }