fn on_resize(&mut self, size: &SizeInfo) {
        let win = size.to_winsize();

        let res = unsafe { libc::ioctl(self.fd.as_raw_fd(), libc::TIOCSWINSZ, &win as *const _) };

        if res < 0 {
            die!("ioctl TIOCSWINSZ failed: {}", io::Error::last_os_error());
        }
    }
/// Resize the pty
///
/// Tells the kernel that the window size changed with the new pixel
/// dimensions and line/column counts.
Resize the pty
Tells the kernel that the window size changed with the new pixel
dimensions and line/column counts.
Resize the pty Tells the kernel that the window size changed with the new pixel dimensions and line / column counts .
fn on_resize(&mut self, size: &SizeInfo) {
        let win = size.to_winsize();
        let res = unsafe { libc::ioctl(self.fd.as_raw_fd(), libc::TIOCSWINSZ, &win as *const _) };
        if res < 0 {
            die!("ioctl TIOCSWINSZ failed: {}", io::Error::last_os_error());
        }
    }
fn on_resize ( & mut self , size : & SizeInfo ) { let win = size . to_winsize ( ) ; let res = unsafe { libc :: ioctl ( self . fd . as_raw_fd ( ) , libc :: TIOCSWINSZ , & win as * const _ ) } ; if res < 0 { die ! ( " " io Error last_os_error ( ) ) ; } }
Resize the pty
Tells the kernel that the window size changed with the new pixel
dimensions and line/column counts.
Resize the pty Tells the kernel that the window size changed with the new pixel dimensions and line / column counts .
&mut self
size
&SizeInfo