tldr-pages / tldr-c-client

C command-line client for tldr pages 📚
MIT License
304 stars 50 forks source link

Problematic default colors #1

Closed jzaefferer closed 8 years ago

jzaefferer commented 10 years ago

I get this output, here for tldr wc, on iTerm2/OSX:

...

Maybe my console's color scheme is at fault, but since there doesn't seem to be a way to change the colors tldr is using (unlike the node client, but that one doesn't work at all) and there is no documentation about what color set is uses, I don't know how to fix this on my end.

Leandros commented 10 years ago

It uses default ansi colors (see here).

However, I didn't accounted for white backgrounds, I'll take a look at it. (You can test on your end, what looks suitable by just changing the defines.)

PS: screen shot 2014-10-01 at 13 19 51

nemecec commented 8 years ago

+1

As a workaround, I just switched to dark background (light background has been a problem also with other tools).

Leandros commented 8 years ago

Should be resolved due to the help of @rastersize!

krishvk commented 6 years ago

TLDR Uses the term colors from https://pypi.python.org/pypi/termcolor You can edit the DEFAULT_COLORS in file whch tldr.py

I simply removed the backgrounds by deleting all words that match perl_re(' on_\w+') and changed the white color to gray

It worked for me greatly on solarized_light or white background

Output on solarized_light image

Leandros commented 6 years ago

This is not the python client.