[][src]Function term_basics_linux::prompt_masked

pub fn prompt_masked(msg: &str, ch: char) -> String

Prints a message to the user. The user can type its input next to the message on the same line. It will return the user input after the user pressed enter. It uses term_basics_linux::input_field_scrollable and supports the same operations.


use term_basics_linux as tbl;
let password = tbl::prompt_masked("Enter password: ", '*'); // Hide the users password as it is typed in!
tbl::println_style(password, tbl::TextStyle::Blink); // show it to the world with some extra spice.