SHARYANTO::Role::TermAttrs - Role for terminal-related attributes
version 0.67
This role gives several options to turn on/off terminal-oriented features like whether to use UTF8 characters, whether to use colors, and color depth. Defaults are set from environment variables or by detecting terminal software/capabilities.
The default is retrieved from environment: if UTF8 is set, it is used. Otherwise, the default is on if terminal emulator software supports Unicode and language (LANG/LANGUAGE) setting has /utf-?8/i in it.
UTF8
Default is 0 for Windows.
Call Term::Detect::Software's detect_terminal_cached.
detect_terminal_cached
UTF8 => BOOL
Can be used to set use_utf8.
use_utf8
INTERACTIVE => BOOL
Can be used to set interactive.
interactive
COLOR => BOOL
Can be used to set use_color.
use_color
COLOR_DEPTH => INT
Can be used to set color_depth.
color_depth
BOX_CHARS => BOOL
Can be used to set use_box_chars.
use_box_chars
COLUMNS => INT
Can be used to set term_width.
term_width
LINES => INT
Can be used to set term_height.
term_height
Please visit the project's homepage at https://metacpan.org/release/SHARYANTO-Roles.
Source repository is at https://github.com/sharyanto/perl-SHARYANTO-Roles.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=SHARYANTO-Roles
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
Steven Haryanto <stevenharyanto@gmail.com>
This software is copyright (c) 2013 by Steven Haryanto.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install SHARYANTO::Roles, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SHARYANTO::Roles
CPAN shell
perl -MCPAN -e shell install SHARYANTO::Roles
For more information on module installation, please visit the detailed CPAN module installation guide.