pub fn tcflush(fd: RawFd, action: FlushArg) -> Result<()>
Expand description
Discard data in the output or input queue (see tcflush(3p)).
tcflush()
will discard data for a terminal port in the input queue, output queue, or both
depending on the value of action
.