programming-examples/perl/SystemFunction/Get Terminal Size.pl

5 lines
163 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
use Term::ReadKey;
($widthchars, $heightchars, $widthpixels, $heightpixels) = GetTerminalSize();
print "Your screen is $heightpixels x $widthpixels pixels.";