/* }}} */
/* {{{ proto bool ncurses_def_prog_mode(void)
- */
+ Saves terminals (program) mode */
PHP_FUNCTION(ncurses_def_prog_mode)
{
RETURN_LONG(def_prog_mode());
/* }}} */
/* {{{ proto bool ncurses_def_shell_mode(void)
- */
+ Saves terminal (shell) mode*/
PHP_FUNCTION(ncurses_def_shell_mode)
{
RETURN_LONG(def_shell_mode());
*/
/* {{{ proto bool ncurses_slk_attr(void)
- */
+ returns current soft label keys attribute */
PHP_FUNCTION(ncurses_slk_attr)
{
RETURN_LONG(slk_attr());
/* }}} */
/* {{{ proto bool ncurses_slk_clear(void)
- */
+ Clears soft label keys from screen */
PHP_FUNCTION(ncurses_slk_clear)
{
RETURN_LONG(slk_clear());
/* }}} */
/* {{{ proto bool ncurses_slk_noutrefresh(void)
- */
+ Copies soft label keys to virtual screen */
PHP_FUNCTION(ncurses_slk_noutrefresh)
{
RETURN_LONG(slk_noutrefresh());
/* }}} */
/* {{{ proto bool ncurses_slk_refresh(void)
- */
+ Copies soft label keys to screen */
PHP_FUNCTION(ncurses_slk_refresh)
{
RETURN_LONG(slk_refresh());
/* }}} */
/* {{{ proto bool ncurses_slk_restore(void)
- */
+ Restores soft label keys */
PHP_FUNCTION(ncurses_slk_restore)
{
RETURN_LONG(slk_restore());
/* }}} */
/* {{{ proto bool ncurses_slk_touch(void)
- */
+ Forces output when ncurses_slk_noutrefresh is performed */
PHP_FUNCTION(ncurses_slk_touch)
{
RETURN_LONG(slk_touch());
}
/* }}} */
-/* {{{ proto bool ncurses_slk_init(int labelnr, string label, int format)
+/* {{{ proto bool ncurses_slk_set(int labelnr, string label, int format)
sets function key labels */
PHP_FUNCTION(ncurses_slk_set)
{
PHP_FUNCTION(ncurses_slk_attrset)
{
long intarg;
-
+
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l",&intarg)==FAILURE) {
return;
}
/* }}} */
/* {{{ proto int ncurses_slk_color(int intarg)
- */
+ Sets color for soft label keys*/
PHP_FUNCTION(ncurses_slk_color)
{
#ifdef HAVE_NCURSES_SLK_COLOR
/* }}} */
/* {{{ proto int ncurses_slk_init(int intarg)
- */
+ Inits soft label keys */
PHP_FUNCTION(ncurses_slk_init)
{
long intarg;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lls",&y,&x,&str,&str_len)==FAILURE) {
return;
}
-
+
RETURN_LONG(mvaddstr(y,x,str));
}
/* }}} */