Finish console operations and flush the output buffer.
(self)
| 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 | """ |
nothing calls this directly
no test coverage detected