pack_winsize#

A struct winsize as a string, for the TIOCSWINSZ ioctl.

Synopsis#

my $ws = IO::Tty::pack_winsize($rows, $cols, $xpixel, $ypixel);
ioctl($tty, IO::Tty::Constant::TIOCSWINSZ(), $ws);

What you get back#

Eight bytes, four unsigned shorts in native order; each number is taken modulo 65536, and the pixel sizes default to 0.