From: Mischa POSLAWSKY Date: Sun, 1 Nov 2015 16:22:58 +0000 (+0100) Subject: termcol: omit backgrounded sample cells for msx transparancy X-Git-Tag: v1.9~79 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/eff606238ed93a22da0b9e8e587db629ef334e7b termcol: omit backgrounded sample cells for msx transparancy --- diff --git a/termcol.plp b/termcol.plp index c58670c..acfe2be 100644 --- a/termcol.plp +++ b/termcol.plp @@ -91,6 +91,7 @@ for my $term (@termlist) { for my $num (0 .. $#{$colours}) { my ($rgb, $name) = split /:/, $colours->[$num], 3; $name ||= $num; + $name = [ $name, [] ] if $term =~ /^msx/ and !$num; $name = [ $name, ['#333'] ] if $term eq 'xkcd'; print '', colcell($name, $rgb); }