From 28f0c08a989656d63bff125dec2b8c9552134fc3 Mon Sep 17 00:00:00 2001 From: Carl Edquist Date: Tue, 4 Oct 2022 11:23:47 -0500 Subject: [PATCH] terminal: use stdout on windows to preserve old behavior --progress and --log-file should be usable together, but windows does not currently preserve the original stderr in config.PasswordPromptOutput; so use stdout explicitly to match the old behavior. --- lib/terminal/terminal.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/terminal/terminal.go b/lib/terminal/terminal.go index 2b15ebb7b..f193eb767 100644 --- a/lib/terminal/terminal.go +++ b/lib/terminal/terminal.go @@ -80,8 +80,8 @@ func Start() { // If output is not a tty then remove escape codes Out = colorable.NewNonColorable(f) } else if runtime.GOOS == "windows" && os.Getenv("TERM") != "" { - // If TERM is set just use stderr - Out = f + // If TERM is set just use stdout + Out = os.Stdout } else { Out = colorable.NewColorable(f) }