Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ newterm(3cur) — Ultrix WS 2.0 VAX

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

endwin(3cur)

initscr(3cur)

newterm(3cur)

NAME

newterm − open new terminal

SYNTAX

SCREEN ∗newterm(type, outfd, infd)
char ∗type;
FILE ∗outfd, ∗infd;

DESCRIPTION

Programs using more than one terminal should call the newterm routine for each terminal instead of initscr. The routine newterm should be called ONCE for each terminal.

The newterm routine returns a variable of type SCREEN ∗ which should be saved as a reference to that terminal. There are three arguments. The first argument type, is the type of the terminal to be used in place of TERM. The second argument, outfd, is a file pointer for output to the terminal. The third argument, infd, is a file pointer for input from the terminal. The program must also call the endwin routine for each terminal, after each terminal has finished running a curses application.

SEE ALSO

endwin(3cur), initscr(3cur)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026