c++command-line-interfaceconio

C++ Mac | Conio alternative


I've just learnt C++ in the last few months and want to start making some CLI games, like the old school Snake, Frogger, Pong, etc... I've found some sources where people use the conio header. I've researched and have found this isn't compatible with Mac..

Does conio work on Debian? I use mint. Also, is there an alternative to conio for mac?


Solution

  • <conio.h> is a DOS header, and thus it doesn't work on Mac or on Debian. There are many libraries you can use instead, with varying degrees of portability; as a commentor suggested, ncurses might be a good choice, or you can look for similar alternatives online.