MCPcopy Index your code
hub / github.com/RustPython/RustPython / move_cursor

Method move_cursor

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

Source from the content-addressed store, hash-verified

338 self.__write(MOVE_DOWN.format(dy))
339
340 def move_cursor(self, x: int, y: int) -> None:
341 if x < 0 or y < 0:
342 raise ValueError(f"Bad cursor position {x}, {y}")
343
344 if y < self.__offset or y >= self.__offset + self.height:
345 self.event_queue.insert(0, Event("scroll", ""))
346 else:
347 self._move_relative(x, y)
348 self.posxy = x, y
349
350 def set_cursor_vis(self, visible: bool) -> None:
351 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