initscr(3cur) initscr(3cur)
Name
initscr - initialize terminal environment
Syntax
#include <cursesX.h>
WINDOW *initscr
Description
This routine determines the terminal type, initializes all data structures and allocates memory space for the windows. It also arranges
that the first call to the routine will clear the screen.
The first routine called in a program using routines should almost always be If errors occur, will write an appropriate error message to
standard error and exit. If the program needs an indication of error conditions, should be used instead of
Note that the program should only call once as it may overflow core memory if it is called repeatedly. If this does occur, ERR is
returned.
Return Values
The function returns on success, and calls on error.
See Also
newterm(3cur), refresh(3cur)
initscr(3cur)