code: def move_cursor(cols=0, rows=0):
      
      if cols == 0 and rows == 0:
          return
      commands = ""
      commands += codes.cursor["up" if rows < 0 else "down"] * abs(rows)
      commands += codes.cursor["left" if cols < 0 else "right"] * abs(cols)
      if commands:
          print(commands, end="")
          stdout.flush()
docs: Moves the cursor the given number of columns and rows
      
      The cursor is moved right when cols is positive and left when negative.
      The cursor is moved down when rows is positive and down when negative.