TextPrompt prints out any character it receives other than newlines, so keys like the arrow keys cause it to insert escape codes into the result, causing unexpected behaviour.
Example: run swift run examples-cli text-prompt and press the left arrow key.
TextPromptprints out any character it receives other than newlines, so keys like the arrow keys cause it to insert escape codes into the result, causing unexpected behaviour.Example: run
swift run examples-cli text-promptand press the left arrow key.