base: reorganise code
[sheet.git] / termcol.plp
index 5493c8ae2eef2c0189e4168b05ddce5d19e8a842..0e3c979631307e78b8e2bc450ba9f61ebef176ef 100644 (file)
@@ -94,9 +94,30 @@ my %col = (
                qw/FFFFFF BFBFBF 808080 404040 000000 6699FF 3366CC 003399
                   99CC33 00CC00 669933 FFCC00 FF9900 FF6600 CC0000 /,
        ],
+       -app => [
+               'Term.app',
+       ],
+       app => [
+               qw/000000 C23621 25BC24 ADAD27 492EE1 D338D3 33BBC8 CBCCCD
+                  818383 FC391F 31E722 EAEC23 5833FF F935F8 14F0F0 E9EBEB /,
+       ],
+       putty => [
+               qw/000000 BB0000 00BB00 BBBB00 0000BB BB00BB 00BBBB BBBBBB
+                  555555 FF5555 55FF55 FFFF55 5555FF FF55FF 55FFFF FFFFFF /,
+       ],
+       -slutty => [
+               sprintf('<a href="%s" title="%s">SluTTY</a>',
+                       'http://www.npjh.com/slutty.html',
+                       'PuTTY fork with light colour scheme',
+               ),
+       ],
+       slutty => [
+               qw/000000 9C1D1D 6C9446 AC9A47 335786 8F6496 486768 E0DCDC
+                  2F2F2F CD5757 8FC35B D1C45E 5C81A9 BC95B7 76CBCB EEEEEC /,
+       ],
 );
 
-for my $term (qw/cga xterm tango html xkcd/) {
+for my $term (qw/cga xterm tango app html xkcd/) {
        print '<table>', "\n";
        printf "<caption>%s</caption>\n", $col{"-$term"}[0] || $term;
        for my $num (0 .. $#{ $col{$term} }) {
@@ -151,11 +172,12 @@ for my $r (0 .. 5) {
 }
 print "\n";
 
+       print '<table>';
 for my $row (0, 12) {
-       print '<table><tr>';
+       print '<tr>';
        print colcell(232+$_, ($_*10 + 8) x 3) for $row .. $row+11;
-       print "</table>\n";
 }
+       print "</table>\n";
 print "\n";
 
 :></div>