NAME

Color::Theme::Role::ANSI - Role for class wanting to support color themes (ANSI support)

VERSION

This document describes version 0.020 of Color::Theme::Role::ANSI (from Perl distribution Color-Theme-Role), released on 2018-02-25.

DESCRIPTION

This role consumes Color::Theme::Role and Term::App::Role::Attrs.

METHODS

$cl->theme_color_to_ansi($color) => str

$cl->get_theme_color_as_ansi($item_name, \%args) => str

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.

When converting to ANSI code, will consult color_depth from Term::App::Role::Attr.

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/Color-Theme-Role.

SOURCE

Source repository is at https://github.com/perlancar/perl-Color-Theme-Role.

BUGS

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.

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

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.