def METHOD_NAME(self, mode=0, on_stderr=False):
    # 0 should clear from the cursor to the end of the line.
    # 1 should clear from the cursor to the beginning of the line.
    # 2 should clear the entire line.
    handle = win32.STDOUT
    if on_stderr:
        handle = win32.STDERR
    csbi = win32.GetConsoleScreenBufferInfo(handle)
    if mode == 0:
        from_coord = csbi.dwCursorPosition
        cells_to_erase = csbi.dwSize.X - csbi.dwCursorPosition.X
    if mode == 1:
        from_coord = win32.COORD(0, csbi.dwCursorPosition.Y)
        cells_to_erase = csbi.dwCursorPosition.X
    elif mode == 2:
        from_coord = win32.COORD(0, csbi.dwCursorPosition.Y)
        cells_to_erase = csbi.dwSize.X
    # fill the entire screen with blanks
    win32.FillConsoleOutputCharacter(handle, ' ', cells_to_erase, from_coord)
    # now set the buffer's attributes accordingly
    win32.FillConsoleOutputAttribute(handle, self.get_attrs(), cells_to_erase, from_coord)