def clear(self):
        """Clears the line and returns cursor to the start.
        of line
        Returns
        -------
        self
        """
        if not self._enabled:
            return self

        self._stream.write('\r')
        self._stream.write(self.CLEAR_LINE)

        return self
def clear ( self ) : if not self . _enabled : return self self . _stream . write ( '\r' ) self . _stream . write ( self . CLEAR_LINE ) return self
Clears the line and returns cursor to the start.
        of line
        Returns
        -------
        self