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

Method update_cursor

Lib/_pyrepl/reader.py:619–622  ·  view source on GitHub ↗

Move the cursor to reflect changes in self.pos

(self)

Source from the content-addressed store, hash-verified

617 self.dirty = True
618
619 def update_cursor(self) -> None:
620 """Move the cursor to reflect changes in self.pos"""
621 self.cxy = self.pos2xy()
622 self.console.move_cursor(*self.cxy)
623
624 def after_command(self, cmd: Command) -> None:
625 """This function is called to allow post command cleanup."""

Callers 1

do_cmdMethod · 0.95

Calls 2

pos2xyMethod · 0.95
move_cursorMethod · 0.45

Tested by

no test coverage detected