About Curses utility: screen oriented input and output
A popular package available with LINUX is the Curses library that supports the screen-oriented input and output. Curses are a set of functions that manages an application display on character -cell terminals. The Curses library forms a wrapper over working with raw terminal codes and provides a highly flexible and efficient Application Programming Interface (API). It provides functions to move the cursor, create windows, produce colours, play with mouse etc. The application program need not worry about underlying terminal capabilities.
Compiling with Curses library:
To use curses library functions a header file named curses.h must be included. To link the program with curses library the flag -lcurses should be added curses.h already includes stdio.h.
Compile and link command:
cc -g Filename.c -lcurses
After compiling the source file a output file "a.out " is produced. The output file "a.out" is a default output file, however the output can be redirected to any file with required name. This output file can be run directly on the command prompt.