use Term::ReadKey; ($wchar, $hchar, $wpixels, $hpixels) = GetTerminalSize();