Skip to content
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

Error interactive_options.rb:337:in `wait_for_user_input': Interrupt (Interrupt) #398

Open
larry104 opened this issue Mar 1, 2023 · 2 comments

Comments

@larry104
Copy link

larry104 commented Mar 1, 2023

When you hit home/end or page-up/page-down cli-ui crashes with this error: interactive_options.rb:337:in `wait_for_user_input': Interrupt (Interrupt). There are more keys that trigger a crash. Shouldn't at least the home/end page-up/page-down navigate options correctly? What is the intended way to handle the keys which cause a crash?

@lugray
Copy link
Contributor

lugray commented Mar 6, 2023

Ideally, these keys would not be causing a crash. Home, end, page-up, and page-down sound like useful navigation keys to add behaviour for. For keys that are currently crashing which have no obvious useful behaviour, sounding a terminal bell seems like the more appropriate action. I'd be delighted to review a PR fixing this.

@larry104
Copy link
Author

larry104 commented Mar 6, 2023

That would be awsome if that could be fixed. I could see the need though to be able to bind keys to an action e.g. insert key would allow to dynamically add elements to the tree for delete would remove them, or a key which would sort the list of values etc. But for now it would be good if it doesn't crash anymore ;-)
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants