HP 3000 Manuals

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


MPE/iX Developer's Kit Reference Manual Volume II

newterm 

The newterm routine is used to open a new terminal.

Syntax 

     #include <stdio.h>
     #include <curses.h>
     SCREEN *newterm(char *type, FILE *outfp, FILE *infp);

Parameters 

type                  A string defining the terminal type to be used in
                      place of TERM.

outfp                 A pointer to a file to be used for output to the
                      terminal.

infp                  The pointer to a file to be used for input to the
                      terminal.

Return Values 

On success, a pointer to new SCREEN structure is returned; otherwise, a
null pointer is returned.

Description 

The newterm() routine opens a new terminal with each call.  It should be
used instead of initscr() when the program interacts with more than one
terminal.  It returns a variable of type SCREEN, which should be used for
later reference to that terminal.  Before program termination, endwin()
should be called for each terminal.

Implementation Considerations 

Identical to XPG/3

See Also 

delscreen(), endwin(), initscr()

Portability 

HP-UX, UNIX System V, XPG/3



MPE/iX 5.0 Documentation