Name : perl-Term-ANSIColor-Conditional
| |
Version : 0.009
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 1.29
| Date : 2024-08-05 17:21:14
|
Group : Unspecified
| Source RPM : perl-Term-ANSIColor-Conditional-0.009-1.29.src.rpm
|
Size : 0.03 MB
| |
Packager : (none)
| |
Summary : Colorize text only if color is enabled
|
Description :
This module is a wrapper for Term::ANSIColor. If color is enabled then everything is the same as Term::ANSIColor. If color is disabled, then \'color()\' will emit empty string and \'colored()\' will not colorize input text.
How to determine \"color is enabled\":
* * If package variable \'$Term::ANSIColor::Conditional::COLOR\' is defined, use that.
* * Otherwise, check if \'NO_COLOR\' environment variable exists. If yes, color is disabled.
* * Otherwise, check if \'COLOR\' environment variable is defined and use that.
* * Otherwise, check if (-t STDOUT) is true (interactive terminal). If yes, color is enabled.
* * Otherwise, color is disabled.
Note that Term::ANSIColor already supports conditional color via the \'ANSI_COLORS_DISABLED\' and \'NO_COLOR\' environment variables, but it does not check for interactive terminal or the \'COLOR\' environment variable.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/openSUSE_Tumbleweed/noarch |