HP 3000 Manuals

initscr [ MPE/iX Developer's Kit Reference Manual Volume II ] MPE/iX 5.0 Documentation


MPE/iX Developer's Kit Reference Manual Volume II

initscr 

The initscr routine is used to initialize single terminal environment.

Syntax 

     #include <curses.h>

     WINDOW *initscr();

Return Values 

On success, a pointer to stdscr is returned; otherwise, a null pointer is
returned (for example, if the console could not be opened for write; the
terminal could not be initialized; or memory could not be allocated for
stdscr).

Description 

The initscr() routine initializes CURSES data structures, determines the
terminal type, and makes sure that the first call to refresh() clears the
screen.  If the program interacts with only one terminal, this should be
the first routine called.

If the program interacts with more than one terminal, newterm() should be
called for each terminal instead of a single call to initscr().

Implementation Considerations 

Identical to XPG/3

See Also 

endwin(), is_endwin(), newterm(), set_term(), use_env()

Portability 

HP-UX, UNIX System V, XPG/3



MPE/iX 5.0 Documentation