Console table output can have poor contrast
Closed this issue · 1 comments
Describe the bug
Because the code is choosing random colors per table column, it can sometimes pick a color that is too close to the terminal background, making it difficult to read.
To Reproduce
Run citelang contrib ...
repeatedly, until a poor contrast color combination is chosen. E.g.
Expected behavior
A minimum contrast versus the background is used for table columns, or the random colors are picked from those that should be safe (e.g the basic 1-6, 9-14 from the 16 color terminal palette which don't include white or black to avoid clashes with most common light or dark terminal setups)
Version that produced the bug
How could we support those that might have dark terminals vs. light terminals? The reason I chose a random choice for color is that if you are unlucky to get a bad combo, if you just run it again the result is cached and it will print in a different color.