Metadata-Version: 2.1
Name: getchar
Version: 2.0.0
Summary: Non-blocking readchar
Project-URL: Homepage, https://github.com/tovicheung/getchar
Keywords: io,readchar,stdin
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown

# getchar

Cross-platform non-blocking stdin reading.

Variant of the `readchar` module (which is blocking).

## How to use

```python
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.
