MCPcopy Index your code
hub / github.com/python/cpython / move_cursor

Method move_cursor

Lib/_pyrepl/windows_console.py:372–380  ·  view source on GitHub ↗
(self, x: int, y: int)

Source from the content-addressed store, hash-verified

370 self.__write(MOVE_DOWN.format(dy))
371
372 def move_cursor(self, x: int, y: int) -> None:
373 if x < 0 or y < 0:
374 raise ValueError(f"Bad cursor position {x}, {y}")
375
376 if y < self.__offset or y >= self.__offset + self.height:
377 self.event_queue.insert(Event("scroll", ""))
378 else:
379 self._move_relative(x, y)
380 self.posxy = x, y
381
382 def set_cursor_vis(self, visible: bool) -> None:
383 if visible:

Callers 2

refreshMethod · 0.95
__write_changed_lineMethod · 0.95

Calls 3

_move_relativeMethod · 0.95
EventClass · 0.70
insertMethod · 0.45

Tested by

no test coverage detected