ccbrown / iocraft

A Rust crate for beautiful, artisanally crafted CLIs and text-based IO.
https://crates.io/crates/iocraft
Apache License 2.0
280 stars 4 forks source link

Add support for mouse events #17

Open ccbrown opened 4 days ago

ccbrown commented 4 days ago

It would be great to be able to click, scroll, hover, etc. with the mouse.

Implementing this support for fullscreen mode is pretty trivial. The problem is...

Is there a robust way to accomplish this? Are there other libraries that do it well?

skreborn commented 3 days ago

I would argue that these features don't make much sense in a non-fullscreen application in the first place, so perhaps the way forward is simply to reserve this functionality to those that have real use for it. Is it really worth trying to find workarounds? Is there a use-case to consider?

ccbrown commented 3 days ago

Good question. I don't have any particularly strong use-cases in mind other than "clickable buttons and text fields might look nice", so perhaps the way to go is to start with implementing this for fullscreen mode and see what use-cases aren't met after that.