-
-
Notifications
You must be signed in to change notification settings - Fork 255
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
Provide isinitialized
function
#128
Comments
Specifically, the hacks are to either check that |
The first suggested fix (check if sys.stderr is wrapped_stderr) won't work for sure because in some cases wrapped_stderr could be the original sys.stderr (not really a wrapped stream) - so they could be equal even if colorama is not in effect. This happens when |
What that means is that you can call
|
I think |
In tornadoweb/tornado#2019, we need a way to tell whether colorama is enabled (analogous to the check a curses-based system would do by looking at the TERM environment variable). There doesn't appear to be any documented way to do this. We're considering a couple of undocumented hacks to discover this, but it would be better to have a documented and supported solution.
The text was updated successfully, but these errors were encountered: