cvs: php4 /ext/ncurses ncurses.c

From: Date: Mon, 17 Sep 2001 21:57:09 +0000
Subject: cvs: php4 /ext/ncurses ncurses.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-7452@lists.php.net to get a copy of this message
hholzgra Mon Sep 17 17:57:09 2001 EDT Modified files: /php4/ext/ncurses ncurses.c Log: some keyboard constants Index: php4/ext/ncurses/ncurses.c diff -u php4/ext/ncurses/ncurses.c:1.7 php4/ext/ncurses/ncurses.c:1.8 --- php4/ext/ncurses/ncurses.c:1.7 Mon Sep 17 17:54:25 2001 +++ php4/ext/ncurses/ncurses.c Mon Sep 17 17:57:09 2001 @@ -77,6 +77,7 @@ */ 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_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;

« previous php.cvs (#7452) next »