Ncurses is a library of functions that manage an application's display on character-cell terminals under Linux, FreeBSD etc. In order to use it with C under GCC you need ncurses-devel library installed. You need to include curses.h file instead of conio.h
In order to compile the code you need to include ncurses library by adding -lncurses to cc command as follows:
Code:
cc myprog.c -o myprog -lncurses
Example of program
Code:
#include <curses.h>
int main(void)
{
/* initialize the curses library */
initscr();
cbreak(); /* take input chars one at a time, no wait for \n */
echo(); /* echo input - in color */
/* now put rest of logic below */
endwin(); /* must be called when done */
}
Read the man 3 ncurses for intro and supported list of functions.