MCPcopy Index your code
hub / github.com/python/cpython / flushoutput

Method flushoutput

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

Flush the output buffer.

(self)

Source from the content-addressed store, hash-verified

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 """

Callers 5

refreshMethod · 0.95
move_cursorMethod · 0.95
restoreMethod · 0.95
finishMethod · 0.95
beepMethod · 0.95

Calls 3

__tputsMethod · 0.95
writeMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected