App::G...erminal(3pm)

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

✨ NAME ✨

App::GitHooks::Terminal β€” okay so this is the lil module that spills all the tea about the terminal that App::GitHook is running inside. πŸ’…

Bestie, this is the page for App::G...erminal(3pm), so buckle up.


πŸŽ€ VERSION πŸŽ€

Version 1.9.0 β€” that's the one, no cap.


🌸 SYNOPSIS 🌸

Lowkey the whole vibe in code form:

use App::GitHooks::Terminal;

my $terminal = App::GitHooks::Terminal->new();
my $get_encoding = $terminal->get_encoding();
my $get_width = $terminal->get_width();
my $is_interactive = $terminal->is_interactive();
my $is_utf8 = $terminal->is_utf8();

πŸ¦‹ METHODS πŸ¦‹

πŸ’– new()

Returns a brand new App::GitHooks::Terminal object, fresh out the box, main character energy only. ✨

my $terminal = App::GitHooks::Terminal->new();

πŸ’– get_encoding()

Figures out what encoding your current terminal is out here speaking. πŸ—£οΈ

my $get_encoding = $terminal->get_encoding();

πŸ’– get_width()

Gets the width of your current terminal β€” measured in number of characters, not vibes. πŸ“

my $get_width = $terminal->get_width();

πŸ’– is_interactive()

Tells you whether the current terminal is interactive or not. Like, is it a two-way convo or are we just screaming into the void? πŸ’€

my $is_interactive = $terminal->is_interactive();

πŸ’– is_utf8()

Checks if the current terminal supports utf-8. 🌈

my $is_utf8 = $terminal->is_utf8();

And plot twist: you can override the utf-8 support if you want, by passing an extra boolean argument:

$terminal->is_utf8(1); # Force utf-8 output.
$terminal->is_utf8(0); # Force non-utf-8 output.

Periodt. πŸ’…


πŸ’€ BUGS πŸ’€

Found a bug or got a feature request? Not the vibe, but pls report it through the web interface at <https://github.com/guillaumeaubert/App-GitHooks/issues/new>. He gets notified, and then you'll automatically be notified of progress on your bug as changes get made. Mutual, bestie. 🫢


🌟 SUPPORT 🌟

You can find documentation for this module with the perldoc command:

perldoc App::GitHooks::Terminal

You can also look for information at:

  • GitHub's request tracker

<https://github.com/guillaumeaubert/App-GitHooks/issues>

  • AnnoCPAN: Annotated CPAN documentation

<http://annocpan.org/dist/app-githooks>

  • CPAN Ratings

<http://cpanratings.perl.org/d/app-githooks>

  • MetaCPAN

<https://metacpan.org/release/App-GitHooks>


πŸ‘‘ AUTHOR πŸ‘‘

Guillaume Aubert <https://metacpan.org/author/AUBERTG>, "<aubertg at cpan.org>".


Copyright 2013-2017 Guillaume Aubert.

This code is free software; you can redistribute it and/or modify it under the same terms as Perl 5 itself.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the LICENSE file for more details.

okay that's the whole page bestie, ily, go forth and terminal πŸ’–βœ¨

perl v5.42.0 Β· 2025-07-25 Β· App::G...erminal(3pm) β€” that's the source, the version and the date, mwah. πŸŽ€πŸ¦‹πŸ’…

πŸ“¦ where this page comes from