我们从Python开源项目中,提取了以下11个代码示例,用于说明如何使用termios.TCOFLUSH。
def reset_output_buffer(self): """\ Clear output buffer, aborting the current output and discarding all that is in the buffer. """ if not self.is_open: raise portNotOpenError termios.tcflush(self.fd, termios.TCOFLUSH)
def flushOutput(self): """Clear output buffer, aborting the current output and discarding all that is in the buffer.""" termios.tcflush(self._f.fileno(), termios.TCOFLUSH)