From 7ea6d58aeaac170e8abafd7afe42e1c6efb8e892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Wed, 15 Jul 2020 02:54:17 +0100 Subject: [PATCH] Make `with_output_color` respect `have_color` --- base/util.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/util.jl b/base/util.jl index 1ccd7bf385130..8325ff0e8c9c1 100644 --- a/base/util.jl +++ b/base/util.jl @@ -69,7 +69,7 @@ text_colors function with_output_color(@nospecialize(f::Function), color::Union{Int, Symbol}, io::IO, args...; bold::Bool = false) buf = IOBuffer() - iscolor = get(io, :color, false)::Bool + iscolor = get_have_color() try f(IOContext(buf, io), args...) finally str = String(take!(buf))