Codebase list libterm-size-perl-perl / f6564fd3-b286-430f-91cd-f07ea917d758/main README
f6564fd3-b286-430f-91cd-f07ea917d758/main

Tree @f6564fd3-b286-430f-91cd-f07ea917d758/main (Download .tar.gz)

README @f6564fd3-b286-430f-91cd-f07ea917d758/mainraw · history · blame

Term::Size::Perl is a Perl module which provides a straightforward 
way to get the size of the terminal (or window) on which 
a script is running.

After building/installing, this module does it job 
with pure Perl code, via ioctl() builtin. The trick is to
extract at build time some configuration parameters
via compiling/running a C code which gets the needed
information for driving Perl ioctl() in the specific
machine.

Adriano Ferreira <ferreira@cpan.org> Jun 14 2006