pub fn resize(&self, size: winsize) -> Result<(), ()> {

        let new_winsize = winsize {
            ws_row: size.ws_row,
            ws_col: size.ws_col,
            ws_xpixel: size.ws_xpixel,
            ws_ypixel: size.ws_ypixel,
        };

        unsafe { ioctl::win_resize(self.fd, &new_winsize) }
            .map(|_| ())
            .map_err(|_| ())
    }
/// Send a resize to the process running in this PTY.
Send a resize to the process running in this PTY.
Send a resize to the process running in this PTY .
pub fn resize(&self, size: winsize) -> Result<(), ()> {
        let new_winsize = winsize {
            ws_row: size.ws_row,
            ws_col: size.ws_col,
            ws_xpixel: size.ws_xpixel,
            ws_ypixel: size.ws_ypixel,
        };
        unsafe { ioctl::win_resize(self.fd, &new_winsize) }
            .map(|_| ())
            .map_err(|_| ())
    }
pub fn resize ( & self , size : winsize ) -> Result < ( ) , ( ) > { let new_winsize = winsize { ws_row : size . ws_row , ws_col : size . ws_col , ws_xpixel : size . ws_xpixel , ws_ypixel : size . ws_ypixel , } ; unsafe { ioctl :: win_resize ( self . fd , & new_winsize ) } . map ( | _ | ( ) ) . map_err ( | _ | ( ) ) }
Send a resize to the process running in this PTY.
Send a resize to the process running in this PTY .
&self
size
winsize
&self
size
winsize