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

Method finish

Lib/_pyrepl/windows_console.py:451–458  ·  view source on GitHub ↗

Move the cursor to the end of the display and otherwise get ready for end. XXX could be merged with restore? Hmm.

(self)

Source from the content-addressed store, hash-verified

449 self.screen = [""]
450
451 def finish(self) -> None:
452 """Move the cursor to the end of the display and otherwise get
453 ready for end. XXX could be merged with restore? Hmm."""
454 y = len(self.screen) - 1
455 while y >= 0 and not self.screen[y]:
456 y -= 1
457 self._move_relative(0, min(y, self.height + self.__offset - 1))
458 self.__write("\r\n")
459
460 def flushoutput(self) -> None:
461 """Flush all output to the screen (assuming there's some

Callers

nothing calls this directly

Calls 4

_move_relativeMethod · 0.95
__writeMethod · 0.95
lenFunction · 0.85
minFunction · 0.85

Tested by

no test coverage detected