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

Method move_cursor

Lib/_pyrepl/unix_console.py:312–325  ·  view source on GitHub ↗

Move the cursor to the specified position on the screen. Parameters: - x (int): X coordinate. - y (int): Y coordinate.

(self, x, y)

Source from the content-addressed store, hash-verified

310 self.flushoutput()
311
312 def move_cursor(self, x, y):
313 """
314 Move the cursor to the specified position on the screen.
315
316 Parameters:
317 - x (int): X coordinate.
318 - y (int): Y coordinate.
319 """
320 if y < self.__offset or y >= self.__offset + self.height:
321 self.event_queue.insert(Event("scroll", None))
322 else:
323 self.__move(x, y)
324 self.posxy = x, y
325 self.flushoutput()
326
327 def prepare(self):
328 """

Callers 2

refreshMethod · 0.95
__write_changed_lineMethod · 0.95

Calls 3

flushoutputMethod · 0.95
EventClass · 0.70
insertMethod · 0.45

Tested by

no test coverage detected