[−][src]Function term_basics_linux::discard_newline_on_prompt_nexttime
pub fn discard_newline_on_prompt_nexttime()
Call this before input_field or it's variations if you want to NOT print a newline(\n) after the user presses enter.
This will work for the next time you call any version of input_field.
To cancel it you can call use_newline_on_prompt.
Example
use term_basics_linux as tbl; tbl::discard_newline_on_prompt_nexttime(); let _ = tbl::prompt("enter your name: "); tbl::println(" // your name");