GetTermSizeGWINSZ#

A terminal’s size from the TIOCGWINSZ ioctl.

Synopsis#

my ($cols, $rows, $xpix, $ypix) = Term::ReadKey::GetTermSizeGWINSZ(\*STDOUT);

What you get back#

Width and height in characters and in pixels (0 where the terminal does not say), or an empty list when the handle is not a terminal. GetTerminalSize calls it first and falls back from an empty list.