term: Remove typing indication for passwords

`inquire::PasswordDisplayMode::Masked` causes inquire to
render characters of the password text input marked as
different characters (asterisks).

Users reported that they would prefer password text input to not be
rendered at all, i.e., have no indication of input. This is inquire's
default, so remove the lines that set the display mode.
This commit is contained in:
Lorenz Leutgeb 2026-06-12 14:21:16 +02:00
parent e991bd7476
commit 88bf2a9648
No known key found for this signature in database
1 changed files with 0 additions and 2 deletions

View File

@ -393,7 +393,6 @@ pub fn passphrase<V: validator::StringValidator + 'static>(
) -> io::Result<Option<Passphrase>> { ) -> io::Result<Option<Passphrase>> {
match Password::new("Passphrase:") match Password::new("Passphrase:")
.with_render_config(*CONFIG) .with_render_config(*CONFIG)
.with_display_mode(inquire::PasswordDisplayMode::Masked)
.without_confirmation() .without_confirmation()
.with_validator(validate) .with_validator(validate)
.prompt() .prompt()
@ -410,7 +409,6 @@ pub fn passphrase_confirm<K: AsRef<OsStr>>(prompt: &str, var: K) -> io::Result<O
match Password::new(prompt) match Password::new(prompt)
.with_render_config(*CONFIG) .with_render_config(*CONFIG)
.with_display_mode(inquire::PasswordDisplayMode::Masked)
.with_custom_confirmation_message("Repeat passphrase:") .with_custom_confirmation_message("Repeat passphrase:")
.with_custom_confirmation_error_message("The passphrases don't match.") .with_custom_confirmation_error_message("The passphrases don't match.")
.with_help_message("Leave this blank to keep your Radicle key unencrypted") .with_help_message("Leave this blank to keep your Radicle key unencrypted")