App::GitHooks::Terminal - Information about the current terminal in which App::GitHook is running.
Version 1.9.0
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();
Return a new App::GitHooks::Terminal object.
App::GitHooks::Terminal
my $terminal = App::GitHooks::Terminal->new();
Determine the current terminal's encoding.
my $get_encoding = $terminal->get_encoding();
Get the width (in the number of characters) of the current terminal.
my $get_width = $terminal->get_width();
Determine whether the current terminal is interactive or not.
my $is_interactive = $terminal->is_interactive();
Determine if the current terminal supports utf-8.
my $is_utf8 = $terminal->is_utf8();
Optionally, you can override the utf-8 support by passing an extra boolean argument:
$terminal->is_utf8(1); # Force utf-8 output. $terminal->is_utf8(0); # Force non-utf-8 output.
Please report any bugs or feature requests through the web interface at https://github.com/guillaumeaubert/App-GitHooks/issues/new. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
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
Guillaume Aubert, <aubertg at cpan.org>.
<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.
To install App::GitHooks, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::GitHooks
CPAN shell
perl -MCPAN -e shell install App::GitHooks
For more information on module installation, please visit the detailed CPAN module installation guide.