bump page versions since v1.13
[sheet.git] / termcol.plp
index 6d69f0c1b798f33328951f5bef3cf754f40e91b5..5f89c3fadd2d70a2cd335ed9e46ad3a57f49ad45 100644 (file)
@@ -2,7 +2,7 @@
 
 Html({
        title => ($Request ? 'terminal colour' : 'colour palettes') . ' cheat sheet',
-       version => '1.1',
+       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 "<td>\n";
@@ -175,7 +174,7 @@ sub coltable {
                                my $num = $row + $col * $rows;
                                my ($rgb, $name) = split /:/, $colours->[$num], 3;
                                $name //= $rgb && $num;
-                               $name = [ $name, [] ] if $term =~ /^msx/ and !$num;
+                               $name = [ $name, [] ] if $term =~ /^msx/ and !$name;  # no bg for transparency
                                $name = [ $name, ['#333'] ] if $term eq 'xkcd';
                                print colcell($name, $rgb);
                        }