HPlogo MPE/iX Developer's Kit Reference Manual Volume 2: HP 3000 MPE/iX Computer Systems > Chapter 4 CURSES

newterm

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

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

Feedback to webmaster