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

Method move_cursor

Lib/_pyrepl/unix_console.py:326–339  ·  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

324 self.flushoutput()
325
326 def move_cursor(self, x, y):
327 """
328 Move the cursor to the specified position on the screen.
329
330 Parameters:
331 - x (int): X coordinate.
332 - y (int): Y coordinate.
333 """
334 if y < self.__offset or y >= self.__offset + self.height:
335 self.event_queue.insert(Event("scroll", None))
336 else:
337 self.__move(x, y)
338 self.posxy = x, y
339 self.flushoutput()
340
341 def prepare(self):
342 """

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