Function term_basics_linux::input_field[][src]

pub fn input_field() -> String

Lets the user type text. It returns the string after the user presses ‘enter’. It supports moving the cursor with the arrow keys, going to the begin and end of the line using ‘home’ and ‘end’ and deleting characters with backspace and the delete key.

Example

use term_basics_linux as tbl;
let user_input = tbl::input_field();