newterm(3cur) newterm(3cur)
Name
newterm - open new terminal
Syntax
#include <stdio.h>
#include <cursesX.h>
SCREEN *newterm(type, outfd, infd)
char *type;
FILE *outfd, *infd;
Description
Programs using more than one terminal should call the routine for each terminal instead of The routine should be called ONCE for each ter-
minal.
The routine returns a variable of type SCREEN * which should be saved as a reference to that terminal. There are three arguments. The
first argument is the type of the terminal to be used in place of TERM. The second argument, is a file pointer for output to the terminal.
The third argument, is a file pointer for input from the terminal. The program must also call the routine for each terminal, after each
terminal has finished running a application.
Return Values
On success the function returns a pointer to the new SCREEN structure created. On failure the function returns a null pointer.
See Also
endwin(3cur), initscr(3cur)
newterm(3cur)