Reads a line from stdin with echo enabled (normal terminal input).
The returned string does not include the trailing newline.
Returns an error if the input is not valid UTF-8.
Reads a password from stdin without echoing it to the terminal.
The returned string does not include the trailing newline.
Returns an error if the input is not valid UTF-8.
Mimics the behaviour of Go’s golang.org/x/term.ReadPassword.