let input = demand::Input::new("Password:")
.inline(true)
.prompt("")
.password(true);
let name = input.run().expect("error running input");
It lets me to input a password, and the password characters are indeed hidden by * characters.
But when I press enter, the password is written in stdout IN CLEAR, like if its a normal input entry.
Why? Am I missing something, or doing something wrong?
IMHO, the flag .password(true) should absolutely block this, or it could generate UNWANTED SURPRISES!
NOTE: It works like that even with .inline(false).
Consider this very simple code:
It lets me to input a password, and the password characters are indeed hidden by
*
characters. But when I press enter, the password is written in stdout IN CLEAR, like if its a normal input entry. Why? Am I missing something, or doing something wrong? IMHO, the flag.password(true)
should absolutely block this, or it could generate UNWANTED SURPRISES! NOTE: It works like that even with.inline(false)
.