set_window_size

Function set_window_size 

Source
pub fn set_window_size(fd: impl AsFd, rows: u16, cols: u16) -> Result<()>
Expand description

Set the terminal window size on a PTY file descriptor.

Safe wrapper around ioctl(TIOCSWINSZ). The caller must pass an fd that refers to a valid PTY master or slave.