-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v4.0.0 development #79
Conversation
Did you try to use the PyCharm terminal for example to debug the input test script? I got one report that the inputs do not work on windows using PyCharm. I myself did not test it, and I think there is also an issue open for the old version, so it is not very important that this works. |
(Edited shorter to keep this thread manageable, detailed discussion in https://github.com/Cube707/python-readchar/pull/5) |
@qianyun210603 please see https://github.com/Cube707/python-readchar/pull/5 Would you also be so kind and edit your comment shorter to keep this thread manageable and more on-topic. Its already big enough with all the commits and linked issues... |
2.7 was not supported or tested for a long time. Since mokypatch requires at least 3.6, this will be the first supporded version.
The `# -*- coding: utf-8 -*-` headers were useful for Python 2, and aren't needed for Python 3 where UTF-8 is the default.
closes #44
Their values where swaped and have been corrected as per @vanschelven PR merges and closes #69
The new setup uses a seperate folder for every operation system that tests are provided for. Test for a different operating system than the one currently running will be ignored.
The testscript now automatically knows of all special keys listed in the `key.py` submodule. It additionally outputs the hex representaion of all detected keys
github will now run precommit and pytest on all pushes and PRs automatically.
This is a continuation of #71. I just felt that it was justified to create a new clean issue.
Motivation
As the current Version 3.0.5 has some big issues and the windows support has always been lacking, I took the time to restructure the complete library.
Changes
The following changes have been made:
Breaking changes
readkey()
function now raises aKeyboardInterupt
whenCTRL+C
is pressed. (butreadchar()
can still be used to capture it). This is more inline with the python philosophy (IMHO) and prevents developers from accidentally trapping their users with no option to stop the programm.fixes
__all__
should return a list of stringsremoved
changed
support for NON-BLOCKING behaviorthis is now removed as it has problems with the terminalsettings as pointed out in Keypresses outside of readchar_linux() are dropped #73 and discussed in feature request - non-blocking / timeout #62new-lines: type: platform
that allows for platform independent linting. Added this.actions/checkout@v3
andactions/setup-python@v4
added
SHIFT+TAB
support on Linuxrelated
closes #80
resolves #78, resolves #46
closes #75
closes #66
closes #56, resolves #42
closes #44
fixes #37
closes #9, resolves #8
closes magmax/python-inquirer#156
fixes magmax/python-inquirer#155
fixes magmax/python-inquirer#117
closes magmax/python-inquirer#113
closes Kamik423/cutie#26
closes Kamik423/cutie#23