Term::C...termsize(3)

πŸ“¦
version 1.02 Β· 2 versions
, in fedora 43

πŸ’… 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::Size if 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 (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::Size
  • perlfaq8

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