|
NAMEColor::Theme::Role::ANSI - Role for class wanting to support color themes (ANSI support)VERSIONThis document describes version 0.020 of Color::Theme::Role::ANSI (from Perl distribution Color-Theme-Role), released on 2018-02-25.DESCRIPTIONThis 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) => strLike "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. HOMEPAGEPlease visit the project's homepage at <https://metacpan.org/release/Color-Theme-Role>.SOURCESource repository is at <https://github.com/perlancar/perl-Color-Theme-Role>.BUGSPlease 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. AUTHORperlancar <perlancar@cpan.org>COPYRIGHT AND LICENSEThis 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.
Visit the GSP FreeBSD Man Page Interface. |