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