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

GitHub - magiblot/tvision: A modern port of Turbo Vision 2.0, the classical framework for text-based user interfaces. Now cross-platform and with Unicode support.

A modern port of Turbo Vision 2.0, the classical framework for text-based user interfaces. Now cross-platform and with Unicode support. - magiblot/tvision

GitHub

@acb I literally have a copy of Turbo Pascal 7.0 for DOS on my shelf!

Happy that Turbo Vision is open source.

Tomorrow: I wish all of the Borland Turbo Pascal and Turbo C/C++ compiler stuff was open source. It's MS-DOS. It's time to *let it go.*

Day after tomorrow: WHY IS WORD PERFECT 5.1 STILL CLOSED SOURCE?

[EDIT] Day after that: WE NEED TO OPEN SOURCE WORDSTAR. GEORGE R. R. MARTIN DEPENDS ON IT.

@umbraroze @acb

"GEORGE R. R. MARTIN DEPENDS ON IT."

Modify it so it refuses text entry unrelated to ASOIAF