-
Notifications
You must be signed in to change notification settings - Fork 65
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
Using pick.pick within curses.wrapper() breaks input #91
Comments
I don't know if this relates to / is same as #83 |
For completeness, I also tested on my raspberry pi and it was reproducible:
|
Thanks for your report, I believe the problem is you're creating nested curses screens: |
Perhaps |
That would make sense as it'd mean pick had done all the teardown type operations. (and I've seen similar with a different menu module too) I'd be happy to create a fork and give that a try (and make a PR if it works) if you'd like |
Sure! Go ahead |
That seems to fix it, at least in my limited use case (and shouldn't break your existing code path) |
test_pick.txt
I'm trying to use pick to add a menu to an existing application, however after doing so the application fails to detect input correctly.
In the attached example I get and print a key press, run a pick menu, then attempt to get and print another key press. However rather than the second keypress be read it ends up being echoed to the terminal.
pick.issue.mp4
This using Python 3.9 running in a WSL Debian Bullseye
The text was updated successfully, but these errors were encountered: