pub fn tcgetwinsize<Fd: AsFd>(fd: Fd) -> Result<Winsize>
tcgetwinsize(fd)—Get the current terminal window size.
tcgetwinsize(fd)
Also known as the TIOCGWINSZ operation with ioctl.
TIOCGWINSZ
ioctl