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-15.fc42 | - |
Fedora 42 | 0.211-15.fc42 | - |
Fedora 41 | 0.211-14.fc41 | - |
Fedora EPEL 9 | 0.211-5.el9 | - |
Fedora EPEL 8 | 0.209-4.el8 | - |
Fedora EPEL 10.1 | 0.211-14.el10_0 | - |
Fedora EPEL 10.0 | 0.211-14.el10_0 | - |
You can contact the maintainers of this package via email at
perl-Term-Size dash maintainers at fedoraproject dot org
.