Function nix::sys::termios::tcflush

source ·
pub fn tcflush<Fd: AsFd>(fd: Fd, action: FlushArg) -> Result<()>
Available on crate feature term only.
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.