NCURSES_NEWWIN(3) 1 NCURSES_NEWWIN(3)
ncurses_newwin - Create a new window
SYNOPSIS
resource ncurses_newwin (int $rows, int $cols, int $y, int $x)
DESCRIPTION
Warning
This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in
a future release of PHP. This function should be used at your own risk.
Creates a new window to draw elements in.
When creating additional windows, remember to use ncurses_getmaxyx(3) to check for available space, as terminal size is individual and may
vary.
PARAMETERS
o $rows
- Number of rows
o $cols
- Number of columns
o $y
- y-coordinate of the origin
o $x
- x-coordinate of the origin
RETURN VALUES
Returns a resource ID for the new window.
PHP Documentation Group NCURSES_NEWWIN(3)