mirror of
https://github.com/rclone/rclone.git
synced 2024-12-22 23:22:08 +01:00
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.
This commit is contained in:
parent
458c477ad8
commit
28f0c08a98
@ -80,8 +80,8 @@ func Start() {
|
|||||||
// If output is not a tty then remove escape codes
|
// If output is not a tty then remove escape codes
|
||||||
Out = colorable.NewNonColorable(f)
|
Out = colorable.NewNonColorable(f)
|
||||||
} else if runtime.GOOS == "windows" && os.Getenv("TERM") != "" {
|
} else if runtime.GOOS == "windows" && os.Getenv("TERM") != "" {
|
||||||
// If TERM is set just use stderr
|
// If TERM is set just use stdout
|
||||||
Out = f
|
Out = os.Stdout
|
||||||
} else {
|
} else {
|
||||||
Out = colorable.NewColorable(f)
|
Out = colorable.NewColorable(f)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user