Skip to content

tovicheung/getchar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages