DiffEqBase.jl icon indicating copy to clipboard operation
DiffEqBase.jl copied to clipboard

Disable ANSI colors

Open mpastell opened this issue 7 years ago • 3 comments

Types still print ANSI colors even if I run julia using julia --color no. This breaks displays that don't support ANSI colors (Weave.jl) for one.

mpastell avatar Feb 27 '19 13:02 mpastell

What should we use as output?

ChrisRackauckas avatar Feb 27 '19 13:02 ChrisRackauckas

I think in this case you just output text without ANSI format codes. I think this what printstyleddoes, see the documentation of IOContext https://docs.julialang.org/en/v1/base/io-network/index.html#Base.IOContext-Tuple{IO,Pair}

mpastell avatar Feb 27 '19 13:02 mpastell

I managed to remove ANSI codes from Weave output, but I think the correct behavior would be to respect the color flag, Probably not very urgent to fix.

mpastell avatar Feb 27 '19 14:02 mpastell