docs: def get_cursor_position():
      """Write an escape sequence to ask for the current cursor position.
      Since the result is written on the standard input, this function
      should not be used if you expect that your input has been pasted,
      because the characters in the buffer would be read before the
      answer about the cursor."""
      
      # "cursor position report" in ECMA-48.
      it = get_char(u'\x1b[6n')
      sequence = consume_escape_sequence(it, next(it))
  
      # sequence format is \x1b[<row>;<col>R
      return tuple(int(x) for x in sequence[2:-1].split(u';'))