git.shiar.nl
/
sheet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b74f2f
)
termcol: support image for table palettes
author
Mischa POSLAWSKY
<perl@shiar.org>
Mon, 8 Feb 2016 04:37:59 +0000
(
05:37
+0100)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Wed, 22 Mar 2017 21:28:04 +0000
(22:28 +0100)
termcol.plp
patch
|
blob
|
history
diff --git
a/termcol.plp
b/termcol.plp
index 850ff83e9ccaf98bc67aef81593b70f592d77088..7e408e602e28288dfa1bae3f54e8559dc237e38c 100644
(file)
--- a/
termcol.plp
+++ b/
termcol.plp
@@
-134,6
+134,12
@@
for my $term (@termlist) {
print '<tr>';
print colcell(@$_) for @$row;
}
+
+ my $width = scalar @{ $table->[0] };
+ my @imgpal = map { [ @{$_}[1 .. 3] ] } map { @{$_} } @{$table};
+ for (@draw) {
+ print "<tr><td colspan=$width>", img_egapal(\@imgpal, @{$_});
+ }
print "</table>\n\n";
}