git.shiar.nl
/
sheet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
termcol: support image for table palettes
[sheet.git]
/
termcol.plp
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;
}
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";
}
print "</table>\n\n";
}