Library /sys$common/syshlp/helplib.hlb  —  CRTL  newwin
    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);

1  –  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). Therefore, 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.

2  –  Return Values

    x                  The address of the allocated window.
    ERR                Indicates an error.
Close Help