}
/* }}} */
-/* {{{ proto bool ncurses_erasechar()
+/* {{{ proto string ncurses_erasechar()
Return current erase character */
PHP_FUNCTION(ncurses_erasechar)
{
- RETURN_LONG(erasechar());
+ char temp[2];
+
+ temp[0] = erasechar();
+ temp[1] = '\0';
+
+ RETURN_STRINGL (temp, 1, 1);
}
/* }}} */
}
/* }}} */
-/* {{{ proto bool ncurses_inch()
+/* {{{ proto string ncurses_inch()
Get character and attribute at current position */
PHP_FUNCTION(ncurses_inch)
{
- RETURN_LONG(inch());
+ char temp[2];
+
+ temp[0] = inch();
+ temp[1] = '\0';
+
+ RETURN_STRINGL (temp, 1, 1);
}
-/* }}} */
-/* {{{ proto bool ncurses_insertln()
+ /* {{{ proto bool ncurses_insertln()
Insert a line, move rest of screen down */
PHP_FUNCTION(ncurses_insertln)
{
}
/* }}} */
-/* {{{ proto bool ncurses_killchar()
+/* {{{ proto string ncurses_killchar()
Return current line kill character */
PHP_FUNCTION(ncurses_killchar)
{
- RETURN_LONG(killchar());
+ char temp[2];
+
+ temp[0] = killchar();
+ temp[1] = '\0';
+
+ RETURN_STRINGL (temp, 1, 1);
}
/* }}} */