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
fd
should be an open file descriptor associated with a terminal.termios
should be a mutable reference to theTermios
structure that will hold the terminal device's parameters.