ColorTh...l::ANSI(3)

πŸ“¦
version 0.002 Β· 3 versions
, in epel 9

πŸ’– ColorThemeUtil::ANSI πŸ’–

okay bestie, this is the ColorThemeUtil::ANSI manual β€” the ColorTh...l::ANSI(3) page, if you were looking at the header β€” and it’s giving utility routines related to color themes and ANSI code. we’re folding the manual name up here instead of copying that header line, iykyk πŸ’….

✨ NAME ✨

ColorThemeUtil::ANSI β€” utility routines related to color themes and ANSI code. periodt.

🌸 VERSION 🌸

This document describes version 0.002 of ColorThemeUtil::ANSI (from Perl distribution ColorThemeUtil-ANSI), released on 2021-02-06. literal timestamp, bestie 🫢.

πŸ’– FUNCTIONS πŸ’–

πŸŽ€ item_color_to_ansi πŸŽ€

Usage:

my $ansi_code = item_color_to_ansi($color [ , $is_bg ]);

okay so this routine expects an item color (string or hash, see ColorTheme) returned by get_item_color() and converts it to ANSI code. it’s the glow-up translator πŸ”₯.

bestie, important vibe check: this routine cannot handle a coderef item color directly; so use get_item_color() first, fr fr.

If the item color has an ansi_fg or ansi_bg property, this routine will use that directly. Otherwise, it will convert RGB to ANSI. that’s the whole tea β˜•.

🏠 HOMEPAGE 🏠

Please visit the project’s homepage at https://metacpan.org/release/ColorThemeUtil-ANSI. go be nosy, ily πŸ’œ.

πŸ“¦ SOURCE πŸ“¦

Source repository is at https://github.com/perlancar/perl-ColorThemeUtil-ANSI. the code is right there, slay.

πŸ› BUGS πŸ›

Please report any bugs or feature requests on the bugtracker website https://github.com/perlancar/perl-ColorThemeUtil-ANSI/issues. we love a paper trail πŸ’….

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. yes, a test-file or a patch to an existing test-file β€” not just β€œit broke” energy, okay? 😭

πŸ‘€ SEE ALSO πŸ‘€

ColorTheme β€” the related module, go peek 🌈.

✍️ AUTHOR ✍️

perlancar <perlancar@cpan.org> β€” author credit, iconic.

This software is copyright (c) 2021 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.


catch u later, bestie πŸ«ΆπŸ’– this page is the ColorTh...l::ANSI(3) manual, and the footer tea is: perl v5.32.1, dated 2022-07-22. periodt ✨

πŸ“¦ where this page comes from