NAME

Getopt::EX::termcolor - Getopt::EX termcolor module

SYNOPSIS

use Getopt::EX::Loader;
my $rcloader = new Getopt::EX::Loader
    BASECLASS => [ 'App::command', 'Getopt::EX' ];

or

use Getopt::EX::Long qw(:DEFAULT ExConfigure);
ExConfigure BASECLASS => [ "App::command", "Getopt::EX" ];

then

$ command -Mtermcolor::bg=

VERSION

Version 1.02

DESCRIPTION

This is a common module for command using Getopt::EX to manipulate system dependent terminal color.

Actual action is done by sub-module under Getopt::EX::termcolor, such as Getopt::EX::termcolor::Apple_Terminal.

At this point, only terminal background color is supported. Each sub-module is expected to have &brightness function which returns integer value between 0 and 100. If the sub-module was found and &brightness function exists, its result is taken as a brightness of the terminal.

However, if the environment variable TERM_BRIGHTNESS is defined, its value is used as a brightness without calling sub-modules. The value of TERM_BRIGHTNESS is expected in range of 0 to 100.

MODULE FUNCTION

UTILITY FUNCTION

SEE ALSO

Getopt::EX

Getopt::EX::termcolor::Apple_Terminal

Getopt::EX::termcolor::iTerm

AUTHOR

Kazumasa Utashiro

LICENSE

Copyright (C) 2020 Kazumasa Utashiro.

You can redistribute it and/or modify it under the same terms as Perl itself.