Term::C...termsize(3)
π NAME π
Term::Completion::_termsize β it's the little utility package whose whole job is figuring out how big your terminal window is π¦
β¨ DESCRIPTION β¨
okay so bestie, listen. This is a utility package, which is fancy speak for "it's not the main character, it's the supporting bestie" π«Ά. Inside it lives a method that Term::Completion needs in order to figure out the size of your current terminal window β that's the columns and the rows, both of them, no cap.
How does it do it? Iconic behaviour, honestly:
- It uses
Term::Sizeif that's available π - If it's not available, it tries to fall back on the
"ioctl"in perlfunc plus some header files π
Like, it's giving resourceful. It's giving "I'll make it work either way." Periodt.
πΈ Methods πΈ
get_term_size()β returns the terminal size as a list of columns and rows. That's it. That's the whole method. Slay. β¨
π AUTHOR π
Marek Rouchal <marekr@cpan.org> π
Also: reused code from "How do I get the screen size?" in perlfaq8. Recycling is iconic, we love to see it π
π 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. iykyk π
π₯ SEE ALSO π₯
Term::Sizeperlfaq8
and that's the whole page bestie, mwah π This little legend ships with perl v5.42.0, dated 2025-07-25, and it's filed under the User Contributed Perl Documentation section of the manual. Go forth and get your terminal size, queen ππ
π¦ where this page comes from
- fedora 43: perl-Term-Completion 1.02-6.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms