[][src]Function term_basics_linux::input_field_custom

pub fn input_field_custom(his: &mut InputHistory, pc: PromptChar) -> String

Lets the user type text. It returns the string after the user presses 'enter'. It supports all functions input_field() supports. You can specify your own InputHistory and PromptChar.


let password = tbl::input_field_custom(&mut tbl::InputHistory::new(0), tbl::PromptChar::Substitude('*')); //Hide the users password as it is typed in!
tbl::println_style(password, tbl::TextStyle::Bold); // THAN PRINT IT OUT