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