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

Method update_cursor

Lib/_pyrepl/reader.py:575–579  ·  view source on GitHub ↗

Move the cursor to reflect changes in self.pos

(self)

Source from the content-addressed store, hash-verified

573 self.dirty = True
574
575 def update_cursor(self) -> None:
576 """Move the cursor to reflect changes in self.pos"""
577 self.cxy = self.pos2xy()
578 trace("update_cursor({pos}) = {cxy}", pos=self.pos, cxy=self.cxy)
579 self.console.move_cursor(*self.cxy)
580
581 def after_command(self, cmd: Command) -> None:
582 """This function is called to allow post command cleanup."""

Callers 1

do_cmdMethod · 0.95

Calls 3

pos2xyMethod · 0.95
traceFunction · 0.90
move_cursorMethod · 0.45

Tested by

no test coverage detected