Flush the output buffer.
(self)
| 500 | termios.tcflush(self.input_fd, termios.TCIFLUSH) |
| 501 | |
| 502 | def flushoutput(self): |
| 503 | """ |
| 504 | Flush the output buffer. |
| 505 | """ |
| 506 | for text, iscode in self.__buffer: |
| 507 | if iscode: |
| 508 | self.__tputs(text) |
| 509 | else: |
| 510 | os.write(self.output_fd, text.encode(self.encoding, "replace")) |
| 511 | del self.__buffer[:] |
| 512 | |
| 513 | def finish(self): |
| 514 | """ |