[][src]Function nix::sys::termios::tcflush

pub fn tcflush(fd: RawFd, action: FlushArg) -> Result<()>

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.