Skip to content

Conversation

@natmey
Copy link

@natmey natmey commented Nov 20, 2020

This request represents several changes that I gathered up from downstream forks.

While I did a little work coaxing merges, the bulk of these changes represent work done by @lukaszb @edmund-huber @hbuschme and @iulian3144 at various points over the last 7 years.

This request incorporates the changes made in Pull request #2, it does not incorporate #3, which I found didn't matter (for me on Debian Linux, python 3.7.3). It also didn't break when I applied the change, and it should merge cleanly with my branch.

This pull includes things like support for 256 colors, among other fixes.

lukaszb and others added 9 commits May 9, 2013 21:51
Seeing ``KeyError`` when copy&pasting in terminal directly from the source (docstring) is bad experience ;-)
If stdout is not a tty (e.g. a file), a user does not normally want to
have ANSI escape codes present in the output.
This commit adds a check (sys.stdout.isatty()) to verify if stdout is a
tty so it will only output color codes in this specific case.
Merging in changes by hbuschme.
gunchev added a commit to gunchev/termcolor_dg that referenced this pull request Feb 8, 2022
Both check and cross marks were rendered white in a green box,
making it hard to distinguish. Changin the unicode character
from '❎' to '❌' should hopefully fix it.

Fixes dngunchev/termcolor2#4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants