App::G...erminal(3pm)
β¨ 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 & LICENSE π
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
- fedora 43: perl-App-GitHooks 1.9.0-27.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