std.ps
tiocgwinsz(fd) -> rows, cols, xpixel, ypixel
fd
rows
cols
xpixel
ypixel
Get the window size of a terminal
Returns the window size of the terminal on fd: rows, cols, xpixel and ypixel. On failure returns nil and the error. Wraps the TIOCGWINSZ ioctl.
nil
TIOCGWINSZ