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
Release history Release notifications | RSS feed
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)