README
1SYNOPSIS
2
3 use Term::ANSIColor;
4 use Text::Table::TinyColorWide qw/ generate_table /;
5
6 my $rows = [
7 # header row
8 [colored(['bright_green'],'Name'), colored(['bright_green'],'Rank'), colored(['bright_green'],'Serial')],
9 # rows
10 ["\x{7231}\x{4E3D}\x{4E1D}", 'pvt', '123456'],
11 [colored(['bold'],"\x{9C8D}\x{6B65}"), 'cpl', '98765321'],
12 ['carol', 'brig gen', colored(['bold'],'8745')],
13 ];
14 binmode('STDOUT', ':utf8');
15 print generate_table(rows => $rows, header_row => 1);
16
17DESCRIPTION
18
19 This module is like Text::Table::Tiny (0.04) with added support for
20 colored text (text containing ANSI color codes) and wide characters.
21 With this module, text with ANSI color codes and/or wide characters
22 will still line up.
23
24 Interface, options, and format variables are the same as in
25 Text::Table::Tiny.
26
27SEE ALSO
28
29 Text::Table::Tiny
30
31 Text::Table::TinyColor for table with just colored text support. If you
32 only use colored text and not wide characters, this module offers fewer
33 dependencies.
34
35 Text::Table::TinyWide for table with just wide character support. If
36 you only use wide characters and not colored text, this module offers
37 fewer dependencies.
38
39 Text::Table::Any
40
41 Text::ANSITable for more formatting options, but with larger footprint
42 and slower rendering speed.
43
44