```{index} single: pack_winsize (IO::Tty) ``` ```{index} single: IO::Tty::pack_winsize ``` # pack_winsize A `struct winsize` as a string, for the TIOCSWINSZ `ioctl`. ## Synopsis ```perl 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.