Function termios::tcgetattr
[−]
[src]
pub fn tcgetattr(fd: RawFd, termios: &mut Termios) -> Result<()>
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
fdshould be an open file descriptor associated with a terminal.termiosshould be a mutable reference to theTermiosstructure that will hold the terminal device's parameters.