#include<curses.h> //includes the curses library so it can be used in the function
main()
{ //opening main method
int i; //declare int i
initscr(); //creates a terminal of a specific type?
noecho(); // turn off echoing
for (i=0; I <5; i++) //loops from 0 to 4
getch(); //takes one character from the keyboard, I think ?
endwin();
} //restores the terminal
I am not sure about what this simple program is doing, and cannot seem to run it either ?
Could someone please help me out here ?
I think you are looking for: