public function clearLine()
    {
        if (!$this->isClearLineEnabled()) {
            return $this;
        }

        $this->cursorReset();
        $this->write(str_repeat(' ', $this->getTerminalWidth()));
        $this->cursorReset();

        $this->disableClearLine();

        return $this;
    }
public function clearLine()
    {
        if (!$this->isClearLineEnabled()) {
            return $this;
        }

        $this->cursorReset();
        $this->write(str_repeat(' ', $this->getTerminalWidth()));
        $this->cursorReset();

        $this->disableClearLine();

        return $this;
    }
public function clearLine ( ) { if ( ! $ this -> isClearLineEnabled ( ) ) { return $ this ; } $ this -> cursorReset ( ) ; $ this -> write ( str_repeat ( ' ' , $ this -> getTerminalWidth ( ) ) ) ; $ this -> cursorReset ( ) ; $ this -> disableClearLine ( ) ; return $ this ; }
Clear the line, based on the terminal width and disable clear line.

@return $this
Clear the line based on the terminal width and disable clear line .