Get Terminal Size : Term « System Functions « Perl






Get Terminal Size

      

use Term::ReadKey;

($widthchars, $heightchars, $widthpixels, $heightpixels) = GetTerminalSize();

print "Your screen is $heightpixels x $widthpixels pixels.";

   
    
    
    
    
    
  








Related examples in the same category

1.use Term::ReadKey;
2.ReadMode('cbreak');
3.Set new prompt letter for terminal when reading data
4.Read password without displaying anything
5.use Term::ANSIColor;