pub fn openpty(
termios: Option<&Termios>,
winsize: Option<&Winsize>,
) -> Result<Pty>Expand description
Open a pseudoterminal.
The termios and winsize arguments specify Termios and Winsize
settings to configure the user file descriptor with.
The returned file descriptors have the CLOEXEC flag set, though not all
platforms supporting setting it atomically.
On many platforms, this includes a call to libc::grantpt, which has
unspecified behavior if the calling process has a SIGCHLD signal handler
installed.