Borland TurboVision (the PC text mode windowing UI used in Turbo Pascal/C++) has been open-sourced and updated to work seamlessly on Linux and with Unicode:
https://github.com/magiblot/tvision
It’s all in C++, though if someone hasn’t wrapped it in bindings for Python/Rust/&c. yet, surely they will