Simple way to get terminal size
Term::Size is a Perl module which provides a straightforward way to retrieve the terminal size. Both functions take an optional filehandle argument, which defaults to *STDIN{IO}. They both return a list of two values, which are the current width and height, respectively, of the terminal associated with the specified filehandle. Term::Size::chars returns the size in units of characters, whereas Term::Size::pixels uses units of pixels.
Release | Stable | Testing |
---|---|---|
Fedora Rawhide | 0.211-12.fc40 | - |
Fedora 40 | 0.211-12.fc40 | - |
Fedora 39 | 0.211-10.fc39 | - |
Fedora 38 | 0.211-8.fc38 | - |
EPEL 9 | 0.211-5.el9 | - |
EPEL 8 | 0.209-4.el8 | - |
EPEL 7 | 0.207-11.el7 | - |
You can contact the maintainers of this package via email at
perl-Term-Size dash maintainers at fedoraproject dot org
.