]> granicus.if.org Git - php/commitdiff
some keyboard constants
authorHartmut Holzgraefe <hholzgra@php.net>
Mon, 17 Sep 2001 21:57:09 +0000 (21:57 +0000)
committerHartmut Holzgraefe <hholzgra@php.net>
Mon, 17 Sep 2001 21:57:09 +0000 (21:57 +0000)
ext/ncurses/ncurses.c

index fda1d16810a3daba2e97dbcb6d6ff5b552a4b5ca..f3f3089821809ffa79f24e84fe21cb6939b5bfd3 100644 (file)
@@ -77,6 +77,7 @@ PHP_INI_END()
  */
 PHP_MINIT_FUNCTION(ncurses)
 {
+    /* color constants */
        PHP_NCURSES_CONST(COLOR_BLACK);
        PHP_NCURSES_CONST(COLOR_RED);
        PHP_NCURSES_CONST(COLOR_GREEN);
@@ -86,6 +87,13 @@ PHP_MINIT_FUNCTION(ncurses)
        PHP_NCURSES_CONST(COLOR_CYAN);
        PHP_NCURSES_CONST(COLOR_WHITE);
        
+    /* keyboard constants */
+    PHP_NCURSES_CONST(KEY_DOWN);
+    PHP_NCURSES_CONST(KEY_UP);
+    PHP_NCURSES_CONST(KEY_LEFT);
+    PHP_NCURSES_CONST(KEY_RIGHT);
+    PHP_NCURSES_CONST(KEY_BACKSPACE);
+
        le_ncurses = zend_register_list_destructors_ex(ncurses_destruct, NULL, "ncurses_handle", module_number);        
 
        return SUCCESS;