https://cyningstan.itch.io/cgalib2
“CGALIB 2 is a set of C libraries for DOS game development. It targets the CGA graphics adapter, specifically the 4-colour 320×200 CGA graphics modes, the IBM XT and AT keyboards, and the PC speaker.”
The author (who also has cool looking games for DOS) has apparently done a CGALIB 1 earlier as well!
Pretty cool. I’ve started dabbling a little tiny bit into programming for old machines. I managed to do a little C64 tutorial using a modern IDE and cross-compiling, and using an emulator to run the result. I think the same approach would work just as well for DOS.
I didn’t yet peek under the hood of this library, but I’m sure it would prove enlightening!