subwin(3cur)
NAME
subwin − create subwindow
SYNTAX
WINDOW ∗subwin(orig, nlines, ncols, begin_y, begin_x) WINDOW ∗orig; int nlines, ncols, begin_y, begin_x;
DESCRIPTION
This routine creates a new sub-window within a window. The dimensions of the sub-window are nlines lines and ncols columns. The sub-window is at position ( begin_y, begin_x) on the screen. This position is relative to the screen, and not to the window orig.
The sub-window is made in the middle of the window orig, so that changes made to either window will affect both. When using this routine, it will often be necessary to call touchwin before calling wrefresh.
SEE ALSO
touchwin(3cur), wrefresh(3cur)
Subroutines