Skip to content

Text prompt breaks on special keys #211

@finnvoor

Description

@finnvoor

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions