Install libterm-size-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libterm-size-perl
Description:
Perl extension for retrieving terminal size
Term::Size is a Perl module which provides a straightforward way to retrieve the terminal size, either as characters or pixels. Optionally, a file handle may be specified to retrieve the width and height of the associated terminal.
Homepage: http://search.cpan.org/dist/Term-Size/
Version: 0.207-1build5
Section: universe/perl