subwin(3cur) subwin(3cur)
Name
subwin - create subwindow
Syntax
#include <cursesX.h>
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 lines and columns. The sub-window is at posi-
tion (on the screen. This position is relative to the screen, and not to the window
The sub-window is made in the middle of the window so that changes made to either window will affect both. When using this routine, it
will often be necessary to call before calling
Return Values
On success the function returns a pointer to the new WINDOW structure created. On failure the function returns a null pointer.
See Also
touchwin(3cur), wrefresh(3cur)
subwin(3cur)