pub fn wait_for_enter(prompt: &str) -> PromptOutcomeExpand description
Prints prompt to stdout and waits for Enter.
Does nothing and returns PromptOutcome::NotATty unless both stdin and stdout are
terminals, so piped input is never swallowed by a prompt and nothing waits on a prompt that
nobody can see. The prompt may contain ANSI styling; it is stripped when stdout does not want
colour. See the module documentation for how Ctrl-C is handled.