ColorTh...l::ANSI(3)
π 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.
Β©οΈ COPYRIGHT AND LICENSE Β©οΈ
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
- epel 9: perl-ColorThemeUtil-ANSI 0.002-6.el9 Β· GPL+ or Artistic
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms