Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions third_party/term-colors/term-colors.pl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#print "TERM::ANSIColor constant names:\n";
term_ansicolor();
} else {
my $padding = 2;
my $section = 1;
my $grouping = 8;

Expand All @@ -28,11 +29,10 @@

if (needs_white($i)) {
print set_fcolor(15); # White
printf(" %03d ",$i); # Ouput the color number in white
} else {
print set_fcolor(0); # Black
printf(" %03d ",$i); # Ouput the color number in black
}
printf(" " x $padding . "%03d" . " " x $padding,$i);

print set_fcolor(); # Reset both colors
print " "; # Seperator
Expand All @@ -42,6 +42,7 @@
print "\n\n";
$section = 0;
$grouping = 6;
$padding = 4;
} elsif ($section > 0 && ($section % $grouping == 0)) {
print set_bcolor(); # Reset
print "\n";
Expand Down