Skip to content

Make first 16 color bars narrower to avoid wrapping #502

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: next
Choose a base branch
from
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