nix::sys::termios

Function tcgetattr

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

Return the configuration of a port tcgetattr(3p)).

tcgetattr() returns a Termios structure with the current configuration for a port. Modifying this structure will not reconfigure the port, instead the modifications should be done to the Termios structure and then the port should be reconfigured using tcsetattr().