diff --git a/fs/config/ui.go b/fs/config/ui.go index 6e4d3908a..e32c2e9b1 100644 --- a/fs/config/ui.go +++ b/fs/config/ui.go @@ -716,9 +716,9 @@ func checkPassword(password string) (string, error) { // GetPassword asks the user for a password with the prompt given. func GetPassword(prompt string) string { - _, _ = fmt.Fprintln(terminal.TerminalOutput, prompt) + _, _ = fmt.Fprintln(terminal.Out, prompt) for { - _, _ = fmt.Fprint(terminal.TerminalOutput, "password:") + _, _ = fmt.Fprint(terminal.Out, "password:") password := ReadPassword() password, err := checkPassword(password) if err == nil { diff --git a/lib/terminal/terminal_normal.go b/lib/terminal/terminal_normal.go index 6bec79c9c..e522cefa8 100644 --- a/lib/terminal/terminal_normal.go +++ b/lib/terminal/terminal_normal.go @@ -34,5 +34,5 @@ func ReadPassword(fd int) ([]byte, error) { // WriteTerminalTitle writes a string to the terminal title func WriteTerminalTitle(title string) { - fmt.Fprintf(TerminalOutput, ChangeTitle + title + BEL) + fmt.Fprintf(Out, ChangeTitle + title + BEL) }