Color::Theme::Role::ANSI - Role for class wanting to support color themes (ANSI support)
This document describes version 0.020 of Color::Theme::Role::ANSI (from Perl distribution Color-Theme-Role), released on 2018-02-25.
This role consumes Color::Theme::Role and Term::App::Role::Attrs.
Like get_theme_color, but if the resulting color value is a coderef, will call that coderef, passing %args to it and returning the value. Also, will convert color theme to ANSI color escape codes.
get_theme_color
%args
When converting to ANSI code, will consult color_depth from Term::App::Role::Attr.
color_depth
Please visit the project's homepage at https://metacpan.org/release/Color-Theme-Role.
Source repository is at https://github.com/perlancar/perl-Color-Theme-Role.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Color-Theme-Role
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.
perlancar <perlancar@cpan.org>
This software is copyright (c) 2018 by perlancar@cpan.org.
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 Color::Theme::Role, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Color::Theme::Role
CPAN shell
perl -MCPAN -e shell install Color::Theme::Role
For more information on module installation, please visit the detailed CPAN module installation guide.