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

Method finish

Lib/_pyrepl/unix_console.py:513–522  ·  view source on GitHub ↗

Finish console operations and flush the output buffer.

(self)

Source from the content-addressed store, hash-verified

511 del self.__buffer[:]
512
513 def finish(self):
514 """
515 Finish console operations and flush the output buffer.
516 """
517 y = len(self.screen) - 1
518 while y >= 0 and not self.screen[y]:
519 y -= 1
520 self.__move(0, min(y, self.height + self.__offset - 1))
521 self.__write("\n\r")
522 self.flushoutput()
523
524 def beep(self):
525 """

Callers

nothing calls this directly

Calls 2

__writeMethod · 0.95
flushoutputMethod · 0.95

Tested by

no test coverage detected