Is there an equivalent of getch() function in Mac?

923 Views Asked by At

I am not able to find the equivalent header file for conio.h (for C programs) in Mac.

I was wondering if there is any option for getch() function in Mac?

I want to use it such that user can give options and program will go forward without pressing enter.

1

There are 1 best solutions below

3
On BEST ANSWER

You probably want to look at ncurses. It has a lot in common with conio. You can get its documentation with "man ncurses".