fn make_pty(size: winsize) -> (RawFd, RawFd) {
    let mut win_size = size;
    win_size.ws_xpixel = 0;
    win_size.ws_ypixel = 0;

    let ends = openpty(Some(&win_size), None).expect("openpty failed");

    (ends.master, ends.slave)
}
/// Get raw fds for master/slave ends of a new pty
Get raw fds for master/slave ends of a new pty
Get raw fds for master / slave ends of a new pty
fn make_pty(size: winsize) -> (RawFd, RawFd) {
    let mut win_size = size;
    win_size.ws_xpixel = 0;
    win_size.ws_ypixel = 0;
    let ends = openpty(Some(&win_size), None).expect("openpty failed");
    (ends.master, ends.slave)
}
fn make_pty ( size : winsize ) -> ( RawFd , RawFd ) { let mut win_size = size ; win_size . ws_xpixel = 0 ; win_size . ws_ypixel = 0 ; let ends = openpty ( Some ( & win_size ) , None ) . expect ( " " ) ; ( ends . master , ends . slave ) }
Get raw fds for master/slave ends of a new pty
Get raw fds for master / slave ends of a new pty
size
winsize