1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-03 17:13:18 +00:00

terminal, log: rename TerminalOutput to RawOut

it was confusing to have a terminal.Out along with a TerminalOutput
This commit is contained in:
Carl Edquist
2022-10-06 16:42:22 -05:00
parent 0687a263f8
commit cec47699d3
2 changed files with 4 additions and 4 deletions

View File

@@ -69,14 +69,14 @@ var (
// make sure that start is only called once
once sync.Once
// TerminalOutput is for password prompt progress output
TerminalOutput = os.Stderr
// RawOut is the underlying *os.File intended for terminal output
RawOut = os.Stderr
)
// Start the terminal - must be called before use
func Start() {
once.Do(func() {
f := TerminalOutput
f := RawOut
if !IsTerminal(int(f.Fd())) {
// If output is not a tty then remove escape codes
Out = colorable.NewNonColorable(f)