So every.nix (mac is.nix below the hood) should have them as part of the base system. Getcunlocked and getcharunlocked functions conform to IEEE Std 1003.1-2001 (POSIX.1). You'll still fail during linking unless you have some library that implements the functions declared in conio.h. And simply adding the header to your project is only going to get you past compile time errors. The conio.h header is not available in Mac OS X by default. You have to initialize a variable, I'll call it scemo and then set it equal to getch(), and the character they input will be set to 'scem0'. But I will explain how getch works so someone might not have to go through what I went through to find it. Programmers Conio.h Kbhit Equivalent For Mac.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |