GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
ColorThemeUtil::ANSI(3) User Contributed Perl Documentation ColorThemeUtil::ANSI(3)

ColorThemeUtil::ANSI - Utility routines related to color themes and ANSI code

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

Usage:

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

This routine expects an item color (string or hash, see ColorTheme) returned by "get_item_color()" and converts it to ANSI code. This routine cannot handle coderef item color directly; so use "get_item_color()" first.

If the item color has "ansi_fg" or "ansi_bg" property, this routine will use that directly. Otherwise, it will convert RGB to ANSI.

Please visit the project's homepage at <https://metacpan.org/release/ColorThemeUtil-ANSI>.

Source repository is at <https://github.com/perlancar/perl-ColorThemeUtil-ANSI>.

Please report any bugs or feature requests on the bugtracker website <https://github.com/perlancar/perl-ColorThemeUtil-ANSI/issues>

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.

ColorTheme

perlancar <perlancar@cpan.org>

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.

2021-02-06 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.