Trying to get getch() working to capture key press.
#include ... ... WINDOW *w; char f; w = initscr(); timeout(30
The above answers are correct but the format is:
gcc -Wall program.c -o name_of_binary -lncurses
When I did:
gcc -Wall -lncurses program.c...
It did not work so apparently it should be tacked on the end.