[][src]Function term_basics_linux::use_newline_on_prompt

pub fn use_newline_on_prompt()

Call this to let any variation of input_field print a newline after the user presses enter. This is not needed, they will print a newline by default. This is used to cancel discard_newline_on_prompt_nexttime.


use term_basics_linux as tbl;
tbl::discard_newline_on_prompt_nexttime();//use somewhere
tbl::use_newline_on_prompt();//cancel somewhere else in code
let _ = tbl::prompt("enter your name: ");
tbl::println(" // your name");