Move the cursor to the end of the display and otherwise get ready for end. XXX could be merged with restore? Hmm.
(self)
| 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 |
nothing calls this directly
no test coverage detected