termios

Function tcgetattr

Source
pub fn tcgetattr(fd: RawFd, termios: &mut Termios) -> Result<()>
Expand description

Populates a Termios structure with parameters associated with a terminal.

Upon successful completion, the Termios structure referred to by the termios parameter will contain the parameters associated with the terminal device referred to by fd.

§Parameters

  • fd should be an open file descriptor associated with a terminal.
  • termios should be a mutable reference to the Termios structure that will hold the terminal device’s parameters.