This is a simple and easy to use package that allows you to capture individual keystrokes from the user.
- (Default) Recive key as a string
- Recive key as bytes (get only)
- Recive key as ints (getnum only)
- from fkeycapture import get, getnum, getchars
- Use get like this:
get(keycount = any int, bytes = True or False) - Use getnum like this:
getnum(keycount = any int, ints = True or False) - Use getchars like this:
getchars(keycount = any int, chars = list of chars, bytes = True or False)
Make some small type hinting changes, update .pyi file
Add new option to use os.read instead of sys.stdin.read
Add support for deleting chars in all methods, also completely removed the help command from the code for space reasons
Mypy support
Project links updated
Internal improvements, Changelog improved
Changelog issue fixed, removed the help command from 1.0.10
Type hinting, docstrings, and int support for getnum!
Now includes a help command! Use fkeycapture.help() to recive help. See v.1.2.1
Fixed README issues in 1.0.8
Added getchars method
Added the getnum method
Finally made the package usable.
Repaired an issue in 1.0.4 which caused the module to cause a recusion error.
Repaired an issue in 1.0.3 which caused the module to be unusable.
Repaired an issue in 1.0.0, 1.0.1, and 1.0.2 which caused the module to be unusable.
Unknown
Corrected incorrect text in certain files
Removed unnecessary code
Replit support?