fdehau/tui-rs ? reverse-engineered prompt
Reverse engineered prompt
Build me a Rust library for making rich terminal user interfaces and dashboards.
I want it to let me draw common widgets like blocks, gauges, sparklines, charts, bar charts, lists, tables, paragraphs, tabs, and a simple canvas for lines and points. It should work smoothly in the terminal with a nice immediate redraw approach, and support both crossterm and termion, with crossterm as the default.
Please include a small demo app that shows off the widgets together in one screen, plus separate examples for the main widget types so I can run them and see how they work. I’d also like the library to be easy to embed in other terminal apps, with a clean API for building the full frame each refresh.
If anything is unclear, check the current docs online first and then fill in the gaps in a sensible way.
Are you gonna build this?
make sure you review the code using coderabbit