-
Notifications
You must be signed in to change notification settings - Fork 44
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
Holding the key-down
causes TerminalMenu.show returns None on rlwrap
#77
Comments
Thanks for the bug report. I tried to quickly press cursor down on a long list with 100 entries, but could not get your described behavior (on Ubuntu 22.04 with gnome terminal). Do you also use the default gnome terminal? |
Yes, i use default gnome shell (v42.5), sometimes it's ok, however if i rerun the script the issue occurs (just holding the key). |
Oh. I found the detail !, I run the script use an alias which is |
down
causes TerminalMenu.show returns Nonedown
causes TerminalMenu.show returns None on rlwrap
Python already has built-in edit support with libreadline. Do you really need |
It looks like i could use |
With |
I've tried another terminal menu on a Rust impl with rlwrap, and it's alright. Maybe there are some incompatiable on terminal manipulation or comflict on libreadline? |
Env: Ubuntu 22.04, Python 3.10, Gnome Shell
Pressing
down
too quickly causesshow
returnsNone
unexpectly (especially for the long menu).And as a workaround, If I put the
show
method into a infinite loop, it also protects from quit shortcuts. (need a specific exception to indicate aquit
event?)The text was updated successfully, but these errors were encountered: