Well, there is a getch() function on Mac OS X, just do a man on it. I imagine it will be the same as whatever you used on windows/linux/whatever. To clear the screen, use system("clear"); which will execute the unix clear command, and clear the current screen.