Skip to main content

Non-blocking readchar

Project description

getchar

Cross-platform non-blocking stdin reading.

Variant of the readchar module (which is blocking).

How to use

from getchar import getkeys

while True:
    keys = getkeys()
    if len(keys) > 0:
        print(keys)

getkeys() returns a list of keys. Length = 0 if no input.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

getchar-2.0.0.tar.gz (2.0 kB view hashes)

Uploaded Source

Built Distribution

getchar-2.0.0-py3-none-any.whl (2.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page