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

Terminal doesn't appear to support interactivity. #62

Open
0xForerunner opened this issue Jan 19, 2023 · 3 comments
Open

Terminal doesn't appear to support interactivity. #62

0xForerunner opened this issue Jan 19, 2023 · 3 comments

Comments

@0xForerunner
Copy link

My app makes extensive use of the Inquire crate. The initial output does come through, but none of the arrow keys etc. result in any response. Not really sure what the difficulty of adding support for this is like. Would be nice to have. I believe inquire uses crossterm under the hood.

@0xForerunner
Copy link
Author

Anyone know if this is possible? Output of inquire Select looks like this:

�[?25l�[?25l�[?25l�[38;5;10m?�[39m Select  
�[38;5;14m>�[39m This
  That
�[38;5;14m[�[39m�[38;5;14m↑↓ to move, enter to select, type to filter�[39m�[38;5;14m]�[39m
�[4A�[10G�[?25h

@MichalGniadek
Copy link
Owner

I considered it out of scope for this crate when I first thought about it, but actually it might not be that hard to implement. I would need to get all the keyboard inputs from egui and then send them to stdin + send a little bit of ANSI codes for arrows and whatnot (maybe with this package).
Still, I'm really busy right now, and it's not really high priority, so I don't know when I will get around to this.

@0xForerunner
Copy link
Author

@MichalGniadek Thanks for the reply. For me at least, this feature would make this crate incredibly powerful to me. Let me know if you ever happen to get around to it!

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