Open doonv opened 7 months ago
I have a Input that looks like this:
Input
let result: String = Input::new() .with_prompt("My Prompt") .with_post_completion_text("Completed Prompt") .default("My Default".to_string()) .interact_text() .unwrap();
If the user types in their own input, everything works as intended. However if the user just presses Enter to use the default string, then the post completion text does not appear, instead the prompt appears.
I have a
Input
that looks like this:If the user types in their own input, everything works as intended. However if the user just presses Enter to use the default string, then the post completion text does not appear, instead the prompt appears.