macro_rules! read_input {
    () => { ... };
    ($($arg:tt)*) => { ... };
}
Expand description

Returns a string from stdin with the prompt given

Example

use better_term::read_input;

// by default read_input() will prompt with "> "
let input = read_input!();
// specify a custom prompt with the same formatting as format!()
let input2 = read_input!("Enter a second value: ");