Skip to content

Handle invalid input rather than panicking #5

Description

@iburaky2

On a WSL terminal, when the user inserts a character that is multiple bytes in UTF-8 such as ü, ğ etc. then presses backspace, it only deletes the last byte. Consequently pressing enter causes the program to panic. The behavior does not happen in a native linux terminal.

Not sure whether this is a setup issue or a bug in this program. Either way, it would be better if the program gave a prompt like "Invalid input, try again" instead of panicking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions