MichalGniadek/klask

Terminal doesn't appear to support interactivity.

Opened this issue · 3 comments

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.

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

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.

@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!