def move_cursor(self, x, y):
    'Move cursor to position `x`, `y`.\n\n        Parameters\n        ----------\n        x : int\n            Desired horizontal position of cursor.\n        y : int\n            Desired vertical position of cursor.\n        '
    if (self.curs_xy[1] > y):
        click.echo(f'{self.esc}[{(self.curs_xy[1] - y)}A', nl=False)
    elif (self.curs_xy[1] < y):
        if ((len(self.line_lengths) - 1) < y):
            click.echo(f'{self.esc}[{((len(self.line_lengths) - 1) - self.curs_xy[1])}B', nl=False)
            click.echo(('\n' * (y - (len(self.line_lengths) - 1))), nl=False)
            click.echo((' ' * x), nl=False)
            self.curs_xy = (x, y)
            return
        else:
            click.echo(f'{self.esc}[{(y - self.curs_xy[1])}B', nl=False)
    if (self.curs_xy[0] > x):
        click.echo(f'{self.esc}[{(self.curs_xy[0] - x)}D', nl=False)
    elif (self.curs_xy[0] < x):
        if (self.line_lengths[y] > x):
            click.echo(f'{self.esc}[{(self.line_lengths[y] - self.curs_xy[0])}C', nl=False)
            click.echo((' ' * (x - self.line_lengths[y])), nl=False)
        else:
            click.echo(f'{self.esc}[{(x - self.curs_xy[0])}C', nl=False)
    self.curs_xy = (x, y)
Move cursor to position `x`, `y`.

Parameters
----------
x : int
    Desired horizontal position of cursor.
y : int
    Desired vertical position of cursor.
def move_cursor(self, x, y):
    'Move cursor to position `x`, `y`.\n\n        Parameters\n        ----------\n        x : int\n            Desired horizontal position of cursor.\n        y : int\n            Desired vertical position of cursor.\n        '
    if (self.curs_xy[1] > y):
        click.echo(f'{self.esc}[{(self.curs_xy[1] - y)}A', nl=False)
    elif (self.curs_xy[1] < y):
        if ((len(self.line_lengths) - 1) < y):
            click.echo(f'{self.esc}[{((len(self.line_lengths) - 1) - self.curs_xy[1])}B', nl=False)
            click.echo(('\n' * (y - (len(self.line_lengths) - 1))), nl=False)
            click.echo((' ' * x), nl=False)
            self.curs_xy = (x, y)
            return
        else:
            click.echo(f'{self.esc}[{(y - self.curs_xy[1])}B', nl=False)
    if (self.curs_xy[0] > x):
        click.echo(f'{self.esc}[{(self.curs_xy[0] - x)}D', nl=False)
    elif (self.curs_xy[0] < x):
        if (self.line_lengths[y] > x):
            click.echo(f'{self.esc}[{(self.line_lengths[y] - self.curs_xy[0])}C', nl=False)
            click.echo((' ' * (x - self.line_lengths[y])), nl=False)
        else:
            click.echo(f'{self.esc}[{(x - self.curs_xy[0])}C', nl=False)
    self.curs_xy = (x, y)