5 ms·
ratatui is very good Rust TUI toolkit right now. But, it doesn't support mouse click events yet[0]. I hope that they implement this feature as i think it's crit
by varbhat 3y ago
ratatui is very good Rust TUI toolkit right now. But, it doesn't support mouse click events yet[0]. I hope that they implement this feature as i think it's critical to some TUI applications.
[0]: https://github.com/ratatui-org/ratatui/issues/273 https://github.com/ratatui-org/ratatui/issues/273
- Varimpls 3y agoI think this application uses click events https://www.github.com/mrjackwills/oxker https://www.github.com/mrjackwills/oxker
- joshka 3y agoIt's a bit broader than this - Ratatui doesn't support events at all. It's not a UI framework, it's a display library (i.e. you call us, not we call you). That doesn't mean you can't do Mouse events (there's an example of this in https://github.com/ratatui-org/ratatui/blob/f767ea7d3766887cb79145103b5aa92e0eabf8f6/examples/custom_widget.rs#L241 https://github.com/ratatui-org/ratatui/blob/f767ea7d3766887c...), it just means there's not deep support for events in any way in Ratatui.