def __init__(self, max_rows=10, max_cols=8, x0=4, y0=4, esc='\x1b'):
    self.max_rows = max_rows
    self.max_cols = max_cols
    self.x0 = x0
    self.y0 = y0
    self.esc = esc
    self._curs_xy = (0, 0)
    self.line_lengths = [0]
    super().__init__()
def __init__(self, max_rows=10, max_cols=8, x0=4, y0=4, esc='\x1b'):
    self.max_rows = max_rows
    self.max_cols = max_cols
    self.x0 = x0
    self.y0 = y0
    self.esc = esc
    self._curs_xy = (0, 0)
    self.line_lengths = [0]
    super().__init__()