pub fn tcsetwinsize<Fd: AsFd>(fd: Fd, winsize: Winsize) -> Result<()>
tcsetwinsize(fd)—Set the current terminal window size.
tcsetwinsize(fd)
Also known as the TIOCSWINSZ operation with ioctl.
TIOCSWINSZ
ioctl