Flush stdout when ask for password #2200
Labels
category: user interface
help: good first issue
easy issue to get started with for beginners (both Go and restic)
help: minor complexity
less complex issue, good for beginners that want a little challenge yet not too complicated
help: wanted
type: bug
Output of
restic version
restic 0.9.4 compiled with go1.11.5 on linux/amd64
(also on git master)
How did you run restic exactly?
What backend/server/service did you use to store the repository?
Local filesystem
Expected behavior
It should ask for password immediately.
Actual behavior
It may or may not ask for password, and stops.
Steps to reproduce the behavior
Run any command that requires password.
Do you have any idea what may have caused this?
In global.go, the Fprint is not called with a flush to stdout, so the terminal may not display the line.
Do you have an idea how to solve the issue?
Add a flush call.
Did restic help you or made you happy in any way?
Yes.
The text was updated successfully, but these errors were encountered: