(self, width=None)
Clear the current row.
Clear the current row.
Clear the current row .
def clear_row(self, width=None):
        """Clear the current row."""
        csbi = GetConsoleScreenBufferInfo(self._hstdout)
        from_coord = wintypes._COORD(0, csbi.dwCursorPosition.Y)
        # fill the entire row with blanks
        if width is None:
            width = csbi.dwSize.X
        FillConsoleOutputCharacter(self._hstdout, u' ', width, from_coord)
        # now set the buffer's attributes accordingly
        FillConsoleOutputAttribute(self._hstdout, self._attrs, width, from_coord)
def clear_row ( self , width = None ) : csbi = GetConsoleScreenBufferInfo ( self . _hstdout ) from_coord = wintypes . _COORD ( 0 , csbi . dwCursorPosition . Y ) # fill the entire row with blanks if width is None : width = csbi . dwSize . X FillConsoleOutputCharacter ( self . _hstdout , u' ' , width , from_coord ) # now set the buffer's attributes accordingly FillConsoleOutputAttribute ( self . _hstdout , self . _attrs , width , from_coord )