pub fn input_field_simple(newline: bool) -> String
Expand description

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 and supports the same operations.

Example

use term_basics_linux as tbl;
print!("type your name: ");
let name = tbl::input_field_simple(true);
print!("Your name: ");
println!("{name}");