Creates a new window with numlines lines and
numcols columns starting at the coordinates (begin_
y,begin_x) on the terminal screen.
Format
#include <curses.h>
WINDOW *newwin (int numlines, int numcols, int
begin_y, int begin_x);
Arguments
- numlines
- If it is 0, the newwin function sets that dimension to LINES
(begin_y). To get a new window of dimensions LINES by COLS,
use the following line:
newwin (0, 0, 0, 0)
- numcols
- If it is 0, the newwin function sets that dimension to COLS
(begin_x). Thus, to get a new window of dimensions LINES by
COLS, use the following line:
newwin (0, 0, 0, 0)
- begin_y
- A window coordinate.
- begin_x
- A window coordinate.
Return Values
x | The address of the allocated
window. |
ERR | Indicates an
error. |
Previous Page | Next Page | Table of Contents | Index