From 43cc96a43d61085634dca5c87b4cc49ed83e4afe Mon Sep 17 00:00:00 2001 From: Calliope <30454698+c4lliope@users.noreply.github.com> Date: Tue, 4 Mar 2025 11:25:56 -0500 Subject: [PATCH] Display Prompts on STDERR (#70) Prompts should be on STDERR https://pubs.opengroup.org/onlinepubs/9699919799.2016edition/utilities/V3_chap02.html#tag_18_05_03 (under PS1) --- util/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/client.go b/util/client.go index 060f985..3070b4d 100644 --- a/util/client.go +++ b/util/client.go @@ -22,7 +22,7 @@ func ReadPassword(prompt string) (string, error) { fd := int(os.Stdin.Fd()) var pass string if term.IsTerminal(fd) { - fmt.Print(prompt) + fmt.Fprint(os.Stderr, prompt); inputPass, err := term.ReadPassword(fd) if err != nil {