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

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

        $this->disableClearLine();

        return $this;
    }