1ColorThemeUtil::ANSI(3)User Contributed Perl DocumentatioCnolorThemeUtil::ANSI(3)
2
3
4
6 ColorThemeUtil::ANSI - Utility routines related to color themes and
7 ANSI code
8
10 This document describes version 0.002 of ColorThemeUtil::ANSI (from
11 Perl distribution ColorThemeUtil-ANSI), released on 2021-02-06.
12
14 item_color_to_ansi
15 Usage:
16
17 my $ansi_code = item_color_to_ansi($color [ , $is_bg ]);
18
19 This routine expects an item color (string or hash, see ColorTheme)
20 returned by get_item_color() and converts it to ANSI code. This routine
21 cannot handle coderef item color directly; so use get_item_color()
22 first.
23
24 If the item color has "ansi_fg" or "ansi_bg" property, this routine
25 will use that directly. Otherwise, it will convert RGB to ANSI.
26
28 Please visit the project's homepage at
29 <https://metacpan.org/release/ColorThemeUtil-ANSI>.
30
32 Source repository is at
33 <https://github.com/perlancar/perl-ColorThemeUtil-ANSI>.
34
36 Please report any bugs or feature requests on the bugtracker website
37 <https://github.com/perlancar/perl-ColorThemeUtil-ANSI/issues>
38
39 When submitting a bug or request, please include a test-file or a patch
40 to an existing test-file that illustrates the bug or desired feature.
41
43 ColorTheme
44
46 perlancar <perlancar@cpan.org>
47
49 This software is copyright (c) 2021 by perlancar@cpan.org.
50
51 This is free software; you can redistribute it and/or modify it under
52 the same terms as the Perl 5 programming language system itself.
53
54
55
56perl v5.36.0 2023-01-20 ColorThemeUtil::ANSI(3)