Codebase list libterm-size-perl-perl / 39fe2698-9659-41f0-9c56-0e156f12c0a5/main
39fe2698-9659-41f0-9c56-0e156f12c0a5/main

Tree @39fe2698-9659-41f0-9c56-0e156f12c0a5/main (Download .tar.gz)

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