Gets a character directly from the application screen.
#include <stdio.h> int cgetc ( void );
Returns the first character in the screen's input buffer.
The cgetc function is a hard-wired console function. Even if stdin is redirected, this function only retrieves characters from the application screen. If your application does not create a screen with the SCREENNAME directive at compile time, your application can receive no input.
For more information on screen creation, see Designating an Application Screen.