There's also WIN32 GUI support too. See this demo program called apelife which was built with Cosmopolitan Libc.
https://justine.lol/apelife/index.html It embeds a UNIX TUI that runs on both Windows and UNIX. It also embeds a WIN32 GUI too, in the same binary. There's also an example of how to build TUI panel applications in the examples/ folder.
https://github.com/jart/cosmopolitan/blob/master/examples/pa... The canonical example of a Cosmopolitan TUI would be
https://justine.lol/blinkenlights/index.html I highly recommend writing TUIs because VT100+XTERM is universal these days and termios was easy to polyfill across operating systems. These things literally run in the CMD.EXE DOS command box on Windows 10 without needing any special #ifdef or conditions, which is wild, and it even works on metal via the serial uart port.
make -j8 o//tool/viz/deathstar.com
qemu-system-x86_64 -m 16 -nographic -fda o//tool/viz/deathstar.com
You don't have to do anything special either. You just write your TUI program in the conventional UNIX style.