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
Text::Table::TinyColorWide(3) User Contributed Perl Documentation Text::Table::TinyColorWide(3)

Text::Table::TinyColorWide - Text::Table::Tiny + support for colored text & wide character

This document describes version 0.001 of Text::Table::TinyColorWide (from Perl distribution Text-Table-TinyColorWide), released on 2016-10-19.

 use Term::ANSIColor;
 use Text::Table::TinyColorWide qw/ generate_table /;

 my $rows = [
     # header row
     [colored(['bright_green'],'Name'), colored(['bright_green'],'Rank'), colored(['bright_green'],'Serial')],
     # rows
     ["\x{7231}\x{4E3D}\x{4E1D}", 'pvt', '123456'],
     [colored(['bold'],"\x{9C8D}\x{6B65}"),   'cpl', '98765321'],
     ['carol', 'brig gen', colored(['bold'],'8745')],
 ];
 binmode('STDOUT', ':utf8');
 print generate_table(rows => $rows, header_row => 1);

This module is like Text::Table::Tiny (0.04) with added support for colored text (text containing ANSI color codes) and wide characters. With this module, text with ANSI color codes and/or wide characters will still line up.

Interface, options, and format variables are the same as in Text::Table::Tiny.

Please visit the project's homepage at <https://metacpan.org/release/Text-Table-TinyColorWide>.

Source repository is at <https://github.com/perlancar/perl-Text-Table-TinyColorWide>.

Please report any bugs or feature requests on the bugtracker website <https://rt.cpan.org/Public/Dist/Display.html?Name=Text-Table-TinyColorWide>

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.

Text::Table::Tiny

Text::Table::TinyColor for table with just colored text support. If you only use colored text and not wide characters, this module offers fewer dependencies.

Text::Table::TinyWide for table with just wide character support. If you only use wide characters and not colored text, this module offers fewer dependencies.

Text::Table::Any

Text::ANSITable for more formatting options, but with larger footprint and slower rendering speed.

perlancar <perlancar@cpan.org>

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

2016-10-19 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.