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

Method finish

Lib/_pyrepl/unix_console.py:493–502  ·  view source on GitHub ↗

Finish console operations and flush the output buffer.

(self)

Source from the content-addressed store, hash-verified

491 del self.__buffer[:]
492
493 def finish(self):
494 """
495 Finish console operations and flush the output buffer.
496 """
497 y = len(self.screen) - 1
498 while y >= 0 and not self.screen[y]:
499 y -= 1
500 self.__move(0, min(y, self.height + self.__offset - 1))
501 self.__write("\n\r")
502 self.flushoutput()
503
504 def beep(self):
505 """

Callers

nothing calls this directly

Calls 4

__writeMethod · 0.95
flushoutputMethod · 0.95
lenFunction · 0.85
minFunction · 0.85

Tested by

no test coverage detected