This is a really compelling game! Great work!
So I had a crack at porting your game to macos. [1]
Everything seems to work, except the text/background colour things which depend on some WIN32 stuff.
To make those text/background colours work on platforms other than Windows, ANSI escape codes would have to be used.