Skip to content

ESC doesn't work on its own on posix #94

@Cube707

Description

@Cube707

Pressing the ESC key on posix systems will not be returned by readkey().

This is expected as it, as the name implies, escapes the next char. It is used to mark longer sequence of multiple keys. readchar can't know the difference if it stems from a single press of ESC or if it is the beginning of a longer sequence.

Use readchar() instead, which correctly returnes every charater seperatly (but you have to handle multiple char-keys yourself, ARROWS, etc..)

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixthis won't be worked on, feel free to contribute

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions