charset: omit unassigned half of ascii table
[sheet.git] / termcol.plp
index ddf6eb4f5d5b40b5c644f6e01a645528095a6343..571b2968b9a8d837ddf000d7aae2d34d5bcb9f5e 100644 (file)
@@ -18,7 +18,7 @@ my @draw = map { [$_, s/\W+\z//] } grep { $_ } split m(/),
        $get{img} // exists $get{img} && 'indi.png';
 
 my @termlist;
-push @termlist, split /\W+/, $ENV{PATH_INFO} || 'default';
+push @termlist, split /\W+/, $Request || 'default';
 
 :>
 <h1>Terminal colours</h1>
@@ -105,7 +105,7 @@ sub coltable {
                coltable($_) for @{$info};
        }
 
-       ref $info eq 'HASH' or next;
+       ref $info eq 'HASH' or return;
 
        my $caption = $info->{name} // $term;
        $caption = sprintf('<%s %s>%s</%1$s>',