Marek Rouchal > Term-Completion > Term::Completion::_termsize

Download:
Term-Completion-1.00.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

NAME ^

Term::Completion::_termsize - utility package to determine terminal size

DESCRIPTION ^

This utility package contains a method that is required for Term::Completion to determine the size (columns, rows) of the current terminal window. This package uses Term::Size if available, and tries to fall back on the "ioctl" in perlfunc and some header files if not.

Methods

get_term_size()

Return the terminal size as a list of columns and rows.

AUTHOR ^

Marek Rouchal <marekr@cpan.org>

Reused code from "How do I get the screen size?" in perlfaq8.

COPYRIGHT ^

Copyright (c) 2009, Marek Rouchal. All Rights Reserved. This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.

SEE ALSO ^

Term::Size, perlfaq8

syntax highlighting: