C++: clrscr() and getch() ?

shad0w

Registered
Hi folks,

I'm seeking for an unix/osx replacement for getch() and clrscr()?

any ideas?

thanks a lot
 
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.
 
Back
Top