X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/8b8c77dbf30f70a1e8ade679a62f08e130f959a2..01d61f72fed7ac041786ea69d1b080f45a4c49d1:/termcol.plp diff --git a/termcol.plp b/termcol.plp index 446b9c5..6f7a55d 100644 --- a/termcol.plp +++ b/termcol.plp @@ -1,111 +1,259 @@ -<: -use utf8; -use strict; -use warnings; -use open IO => ':utf8'; -use List::Util 'min'; - -our $VERSION = 'v1.0'; +<(common.inc.plp)><: -$header{content_type} = 'text/html; charset=utf-8'; +Html({ + title => 'terminal colour cheat sheet', + version => '1.1', + description => [ + "Index of all terminal/console colour codes,", + "with an example result of various environments.", + ], + keywords => [qw' + color code terminal console escape table xterm rxvt + '], + data => ['termcol.inc.pl'], + stylesheet => [qw'light dark'], +}); -:> - +my @draw = map { [$_, s/\W+\z//] } grep { $_ } split m(/), + $get{img} // exists $get{img} && 'indi.png'; - -terminal colour cheat sheet - - - +my @termlist; +push @termlist, split /\W+/, $ENV{PATH_INFO} || 'default'; - +:>

Terminal colours

- -
-

88-colour space

+coltable($_) for @termlist; +:> +