Skip to content

Commit e5b36d6

Browse files
committed
enable color if stdout and stderr are both TTYs
1 parent ddc9e3c commit e5b36d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/client.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ function exec_options(opts)
224224
global is_interactive = (opts.isinteractive != 0)
225225

226226
#check if stdout is TTY and color is not set manually
227-
if isa(stdout, TTY) && !color_set
227+
if isa(stdout, TTY) && isa(stderr, TTY) && !color_set
228228
global have_color = true
229229
end
230230

0 commit comments

Comments
 (0)