X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/dc6b482b5e7e1d3d35b5193fc820c5e1afc29a6e..2bf6ce4daff354b4d7773dd6471dffbe37ca9bc8:/termcol.plp diff --git a/termcol.plp b/termcol.plp index c510cd2..5f89c3f 100644 --- a/termcol.plp +++ b/termcol.plp @@ -2,7 +2,7 @@ Html({ title => ($Request ? 'terminal colour' : 'colour palettes') . ' cheat sheet', - version => '1.2', + version => '1.4', description => [!$Request ? "Comparison of various colour palettes." : ( "Index of all terminal/console colour codes,", "with an example result of various environments.", @@ -16,7 +16,7 @@ Html({ }); my @draw = map { [$_, s/\W+\z//] } grep { $_ } split m(/), - $get{img} // exists $get{img} && 'indi.png'; + $get{img} // exists $get{img} && 'compile.png'; my @termlist; push @termlist, split /\W+/, $Request || 'default'; @@ -44,8 +44,7 @@ use Shiar_Sheet::Colour 1.04; use List::Util qw( min max ); use POSIX qw( ceil ); -my $palettes = do 'termcol.inc.pl'; -die "Cannot open palette data: $_\n" for $@ || $! || (); +my $palettes = Data('termcol'); sub colcell { my $name = shift // return "\n";