Home > PHP > Function > Ncurses > ncurses_newwin()

ncurses_newwin()

ncurses_newwin - Create a new window

Syntax

resource ncurses_newwin (int $rows, int $cols, int $y, int $x)

Arguments

  • rows - Number of rows
  • cols - Number of columns
  • y - y-coordinate of the origin
  • x - x-coordinate of the origin

Description

Creates a new window to draw elements in.

Version

PHP 4.0.7, 5 < 5.3.0, PECL ncurses >= 1.0.0

Return value

Returns a resource ID for the new window.