FWIW, I evaluated a dozen compiled TUI libraries and found FTXUI to be the easiest to use and most reliable:
https://github.com/ArthurSonzogni/FTXUI
It's a nice tool to build interactive dashboards with both keyboard and mouse support.
https://github.com/ArthurSonzogni/FTXUI
It's a nice tool to build interactive dashboards with both keyboard and mouse support.