}
/* }}} */
-/* {{{ proto int ncurses_attroff(int intarg)
+/* {{{ proto int ncurses_attroff(int attributes)
Turn off the given attributes */
PHP_FUNCTION(ncurses_attroff)
{
}
/* }}} */
-/* {{{ proto int ncurses_attron(int intarg)
+/* {{{ proto int ncurses_attron(int attributes)
Turn on the given attributes */
PHP_FUNCTION(ncurses_attron)
{
}
/* }}} */
-/* {{{ proto int ncurses_attrset(int intarg)
+/* {{{ proto int ncurses_attrset(int attributes)
Set given attributes */
PHP_FUNCTION(ncurses_attrset)
{
}
/* }}} */
-/* {{{ proto int ncurses_bkgd(int intarg)
+/* {{{ proto int ncurses_bkgd(int attrchar)
Set background property for terminal screen */
PHP_FUNCTION(ncurses_bkgd)
{
}
/* }}} */
-/* {{{ proto int ncurses_curs_set(int intarg)
+/* {{{ proto int ncurses_curs_set(int visibility)
Set cursor state */
PHP_FUNCTION(ncurses_curs_set)
{
}
/* }}} */
-/* {{{ proto int ncurses_delay_output(int intarg)
+/* {{{ proto int ncurses_delay_output(int milliseconds)
Delay output on terminal using padding characters */
PHP_FUNCTION(ncurses_delay_output)
{
}
/* }}} */
-/* {{{ proto int ncurses_echochar(int intarg)
+/* {{{ proto int ncurses_echochar(int character)
Single character output including refresh */
PHP_FUNCTION(ncurses_echochar)
{
}
/* }}} */
-/* {{{ proto int ncurses_halfdelay(int intarg)
+/* {{{ proto int ncurses_halfdelay(int tenth)
Put terminal into halfdelay mode */
PHP_FUNCTION(ncurses_halfdelay)
{
}
/* }}} */
-/* {{{ proto int ncurses_has_key(int intarg)
+/* {{{ proto int ncurses_has_key(int keycode)
Check for presence of a function key on terminal keyboard */
PHP_FUNCTION(ncurses_has_key)
{
}
/* }}} */
-/* {{{ proto int ncurses_insch(int intarg)
+/* {{{ proto int ncurses_insch(int character)
Insert character moving rest of line including character at current position */
PHP_FUNCTION(ncurses_insch)
{
}
/* }}} */
-/* {{{ proto int ncurses_insdelln(int intarg)
+/* {{{ proto int ncurses_insdelln(int count)
Insert lines before current line scrolling down (negative numbers delete and scroll up) */
PHP_FUNCTION(ncurses_insdelln)
{
}
/* }}} */
-/* {{{ proto int ncurses_mouseinterval(int intarg)
+/* {{{ proto int ncurses_mouseinterval(int milliseconds)
Set timeout for mouse button clicks */
PHP_FUNCTION(ncurses_mouseinterval)
{
}
/* }}} */
-/* {{{ proto int ncurses_napms(int intarg)
- µs sleep */
+/* {{{ proto int ncurses_napms(int milliseconds)
+ Sleep */
PHP_FUNCTION(ncurses_napms)
{
long intarg;
}
/* }}} */
-/* {{{ proto int ncurses_scrl(int intarg)
+/* {{{ proto int ncurses_scrl(int count)
Scroll window content up or down without changing current position */
PHP_FUNCTION(ncurses_scrl)
{
}
/* }}} */
-/* {{{ proto int ncurses_typeahead(int intarg)
+/* {{{ proto int ncurses_typeahead(int fd)
Specify different filedescriptor for typeahead checking */
PHP_FUNCTION(ncurses_typeahead)
{
}
/* }}} */
-/* {{{ proto int ncurses_ungetch(int intarg)
+/* {{{ proto int ncurses_ungetch(int keycode)
Put a character back into the input stream */
PHP_FUNCTION(ncurses_ungetch)
{
}
/* }}} */
-/* {{{ proto int ncurses_use_extended_names(int intarg)
+/* {{{ proto int ncurses_use_extended_names(bool flag)
Control use of extended names in terminfo descriptions */
PHP_FUNCTION(ncurses_use_extended_names)
{
}
/* }}} */
-/* {{{ proto void ncurses_bkgdset(int intarg)
+/* {{{ proto void ncurses_bkgdset(int attrchar)
Control screen background */
PHP_FUNCTION(ncurses_bkgdset)
{
}
/* }}} */
-/* {{{ proto void ncurses_timeout(int intarg)
+/* {{{ proto void ncurses_timeout(int millisec)
Set timeout for special key sequences */
PHP_FUNCTION(ncurses_timeout)
{
}
/* }}} */
-/* {{{ proto void ncurses_use_env(int intarg)
+/* {{{ proto void ncurses_use_env(bool flag)
Control use of environment information about terminal size */
PHP_FUNCTION(ncurses_use_env)
{
}
/* }}} */
-/* {{{ proto int ncurses_scr_dump(string text)
+/* {{{ proto int ncurses_scr_dump(string filename)
Dump screen content to file */
PHP_FUNCTION(ncurses_scr_dump)
{
}
/* }}} */
-/* {{{ proto int ncurses_scr_init(string text)
+/* {{{ proto int ncurses_scr_init(string filename)
Initialize screen from file dump */
PHP_FUNCTION(ncurses_scr_init)
{
}
/* }}} */
-/* {{{ proto int ncurses_scr_restore(string text)
+/* {{{ proto int ncurses_scr_restore(string filename)
Restore screen from file dump */
PHP_FUNCTION(ncurses_scr_restore)
{
}
/* }}} */
-/* {{{ proto int ncurses_scr_set(string text)
+/* {{{ proto int ncurses_scr_set(string filename)
Inherit screen from file dump */
PHP_FUNCTION(ncurses_scr_set)
{
}
/* }}} */
-/* {{{ proto int ncurses_insstr(string)
+/* {{{ proto int ncurses_insstr(string text)
Insert string at current position, moving rest of line right */
PHP_FUNCTION(ncurses_insstr)
{
}
/* }}} */
-/* {{{ proto int ncurses_instr(string)
- */
+#if 0
+/* TODO return by reference */
+/* {{{ proto int ncurses_instr(string buffer)
+ Read string from terminal screen */
PHP_FUNCTION(ncurses_instr)
{
char *str;
RETURN_LONG(instr(str));
}
/* }}} */
+#endif
-/* {{{ proto int ncurses_mvhline(int,int,int,int)
- */
+/* {{{ proto int ncurses_mvhline(int y, int x, int attrchar, int n)
+ Set new position and draw a horizontal line using an attributed character and max. n characters long */
PHP_FUNCTION(ncurses_mvhline)
{
long i1,i2,i3,i4;
}
/* }}} */
-/* {{{ proto int ncurses_mvcur(int,int,int,int)
- */
+/* {{{ proto int ncurses_mvvline(int y, int x, int attrchar, int n)
+ Set new position and draw a vertical line using an attributed character and max. n characters long */
+PHP_FUNCTION(ncurses_mvvline)
+{
+ long i1,i2,i3,i4;
+
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "llll",&i1,&i2,&i3,&i4)==FAILURE) {
+ return;
+ }
+
+ RETURN_LONG(mvvline(i1,i2,i3,i4));
+}
+/* }}} */
+
+/* {{{ proto int ncurses_mvcur(int old_y,int old_x, int new_y, int new_x)
+ Move cursor immediately */
PHP_FUNCTION(ncurses_mvcur)
{
long i1,i2,i3,i4;
}
/* }}} */
-/* {{{ proto int ncurses_init_color(int,int,int,int)
- */
+/* {{{ proto int ncurses_init_color(int color, int r, int g, int b)
+ Set new RGB value for color */
PHP_FUNCTION(ncurses_init_color)
{
long i1,i2,i3,i4;
}
/* }}} */
-/* {{{ proto int ncurses_border(int,int,int,int,int,int,int,int)
- */
+/* {{{ proto int ncurses_border(int left, int right, int top, int bottom, int tl_corner, int tr_corner, int bl_corner, int br_corner)
+ Draw a border around the screen using attributed characters */
PHP_FUNCTION(ncurses_border)
{
long i1,i2,i3,i4,i5,i6,i7,i8;
}
/* }}} */
-/* {{{ proto int ncurses_assume_default_colors(int,int)
- */
+/* {{{ proto int ncurses_assume_default_colors(int fg, int bg)
+ Define default colors for color 0 */
PHP_FUNCTION(ncurses_assume_default_colors)
{
#ifdef HAVE_NCURSES_ASSUME_DEFAULT_COLORS
}
/* }}} */
-/* {{{ proto int ncurses_define_key(string,int)
- */
+/* {{{ proto int ncurses_define_key(string definition, int keycode)
+ Define a keycode */
PHP_FUNCTION(ncurses_define_key)
{
long n;
}
/* }}} */
-/* {{{ proto int ncurses_hline(int,int)
- */
+/* {{{ proto int ncurses_hline(int charattr, int n)
+ Draw a horizontal line at current position using an attributed character and max. n characters long */
PHP_FUNCTION(ncurses_hline)
{
long i1,i2;
}
/* }}} */
-/* {{{ proto int ncurses_vline(int,int)
- */
+/* {{{ proto int ncurses_vline(int charattr, int n)
+ Draw a vertical line at current position using an attributed character and max. n characters long */
PHP_FUNCTION(ncurses_vline)
{
long i1,i2;
}
/* }}} */
-/* {{{ proto int ncurses_keyok(int,bool)
- */
+/* {{{ proto int ncurses_keyok(int keycode, bool enable)
+ Enable or disable a keycode */
PHP_FUNCTION(ncurses_keyok)
{
long i,b;
/* }}} */
/* {{{ proto int ncurses_mvwaddstr(resource window, int y, int x, string text)
- */
+ Add string at new position in window */
PHP_FUNCTION(ncurses_mvwaddstr)
{
zval **handle, **x, **y, **text;
/* }}} */
/* {{{ proto int ncurses_wrefresh(resource window)
- */
+ Refresh window on terminal screen */
PHP_FUNCTION(ncurses_wrefresh)
{
zval **handle;