pub fn openpty<'a, 'b, T: Into<Option<&'a Winsize>>, U: Into<Option<&'b Termios>>>(
winsize: T,
termios: U,
) -> Result<OpenptyResult>
Expand description
Create a new pseudoterminal, returning the slave and master file descriptors
in OpenptyResult
(see openpty
).
If winsize
is not None
, the window size of the slave will be set to
the values in winsize
. If termios
is not None
, the pseudoterminal’s
terminal settings of the slave will be set to the values in termios
.