Skip to content

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

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..)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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