Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ newwin(3) — OSF/1 1.0 (TIN) MIPS

Media Vault

Software Library

Restoration Projects

Artifacts Sought

newwin(3)  —  Subroutines

Digital

NAME

newwin − create new window

SYNOPSIS

#include <curses.h>

WINDOW ∗newwin(nlines, ncols, begin_y, begin_x)
int nlines, ncols, begin_y, begin_x;

DESCRIPTION

The function newwin creates a new window with the specified number of lines, nlines, and columns, ncols.  The upper left corner of the window is at line begin_y, column begin_x. 

If either nlines or ncols is zero, it will be defaulted to LINES − begin_y and COLS - begin_x .  A new full-screen window is created by calling newwin (0,0,0,0). 

RETURN VALUES

On success, the newwin function returns a pointer to the new WINDOW structure created. On failure, the function returns a null pointer. 

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