Function nix::sys::termios::tcflush

source ยท
pub fn tcflush<Fd: AsFd>(fd: Fd, 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.