-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
with_output_color writes control codes to non-terminal streams #19682
Comments
The problem here is that before that PR the output was something like:
Previously, the whole string The only thing that determines or not whether Julia should use colors is the global variable |
Yeah, I just realized that Jupyter supports ANSI color codes even though it is not a TTY. Still, I wonder if this should be some kind of IOContext thing. |
Yeah, it most likely should. It has also been discussed in some places. Maybe most of it could be solved by moving to an |
You could also just define |
Can this be closed now that JuliaLang/Compat.jl#293 has been merged or is there still something to be done in Base Julia? |
There is the still question of whether |
This strikes me as a bugfix that would be eligible for fixing at any time, but we may as well fix it. We need |
And ideally remove the |
We can add a |
This doesn't seem right:
This seems to be the behavior in 0.4 and 0.5 as well. However, something related to this has recently started breaking this test in Compat.jl. The most recent change to the relevant file
base/util.jl
seems to be #18628; @KristofferC, could that have affected the Compat test?The text was updated successfully, but these errors were encountered: