NAME

App::karr::Role::Color - Shared colour decision for the renderers that colour their output

VERSION

version 0.601

DESCRIPTION

The one place that decides whether a renderer colours its output. Both App::karr::Cmd::Board and App::karr::Cmd::Dashboard used to carry the same test (-t STDOUT && !$ENV{NO_COLOR}) as a copy; this role is that test moved into one place and extended with the --no-color flag.

Colour is on only when all three hold: standard output is a terminal, NO_COLOR is unset, and neither this command nor a root --no-color disabled it. The flag is declared here so it is available in both placements the way --dir is -- karr --no-color board as well as karr board --no-color -- and the root command composes this role for the same reason.

SUPPORT

Issues

Please report bugs and feature requests on GitHub at https://github.com/Getty/karr/issues.

IRC

Join #langertha on irc.perl.org or message Getty directly.

CONTRIBUTING

Contributions are welcome! Please fork the repository and submit a pull request.

AUTHOR

Torsten Raudssus <getty@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2026 by Torsten Raudssus <torsten@raudssus.de> https://raudssus.de/.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)