```{index} single: GetTermSizeGWINSZ (Term::ReadKey) ``` ```{index} single: Term::ReadKey::GetTermSizeGWINSZ ``` # GetTermSizeGWINSZ A terminal's size from the TIOCGWINSZ ioctl. ## Synopsis ```perl 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.