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

Method finish

Lib/_pyrepl/windows_console.py:503–510  ·  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

501 self.screen = []
502
503 def finish(self) -> None:
504 """Move the cursor to the end of the display and otherwise get
505 ready for end. XXX could be merged with restore? Hmm."""
506 y = len(self.screen) - 1
507 while y >= 0 and not self.screen[y]:
508 y -= 1
509 self._move_relative(0, min(y, self.height + self.__offset - 1))
510 self.__write("\r\n")
511
512 def flushoutput(self) -> None:
513 """Flush all output to the screen (assuming there's some

Callers

nothing calls this directly

Calls 2

_move_relativeMethod · 0.95
__writeMethod · 0.95

Tested by

no test coverage detected