From: Mischa POSLAWSKY Date: Tue, 2 May 2017 19:42:02 +0000 (+0200) Subject: termcol: trim 8-colour xcolors palettes X-Git-Tag: v1.10~29 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/ebcb46b18968910f150d7c54de8e472dffd923c7 termcol: trim 8-colour xcolors palettes --- diff --git a/tools/mktermcol-xcolor b/tools/mktermcol-xcolor index 4dba0bc..74bed79 100755 --- a/tools/mktermcol-xcolor +++ b/tools/mktermcol-xcolor @@ -46,6 +46,8 @@ for my $path (@ARGV) { next; } + splice @pal, 8 if "@pal[0..7]" eq "@pal[8..15]"; + say qq("$name" => {); say qq(\ttitle => '$name',); say qq(\tparent => 'cga',);