Skip to content
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

added option to force color output, even if not a tty #365

Merged

Conversation

pmolodo
Copy link
Contributor

@pmolodo pmolodo commented Nov 12, 2016

Currently, whether or not rez outputs color is purely determined by whether or not the current stdout is a tty; unfortunately, that means that when doing things like using the output of rez in pipes, etc, color is always disabled.

This fix provides a means to force color output on, so that things like this will work:

echo $(REZ_COLOR_ENABLED=force python -c "from rez.utils.colorize import Printer, local; Printer()('foo', local)")

@nerdvegas nerdvegas merged commit 7da94e1 into AcademySoftwareFoundation:master Mar 11, 2017
@pmolodo pmolodo deleted the force_color branch March 15, 2017 18:28
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.

2 participants