tty.tcflush()
¶
-
tty.
tcflush
(fd, queue) → None¶ Discard queued data on file descriptor fd. The queue selector specifies which queue: termios.TCIFLUSH for the input queue, termios.TCOFLUSH for the output queue, or termios.TCIOFLUSH for both queues.