Skip to content

Conversation

@ldatura
Copy link

@ldatura ldatura commented Aug 27, 2019

Bug:

If not stdout, program will auto-detect terminfo capabilities despite the choice regarding the --color command line argument. Because of this, terminfo terminal is never initialized and the program breaks when trying to output any color code.

Proposed solution

This change forces terminfo proper initialization if --color always is requested, even if os.isatty() is False.

Bug:
If not stdout, program will auto-detect terminfo capabilities despite
the choice regarding the `--color` command line argument.  Because of
this, terminfo terminal is never initialized and the program breaks when
trying to output any color code.

This change forces terminfo proper initialization if `--color always` is
requested, even if `os.isatty()` is `False`.
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.

1 participant