diff options
author | Hartmut Holzgraefe <hholzgra@php.net> | 2001-09-17 21:57:09 +0000 |
---|---|---|
committer | Hartmut Holzgraefe <hholzgra@php.net> | 2001-09-17 21:57:09 +0000 |
commit | bc631cce3e40156464dd68b5db809726a6072cc7 (patch) | |
tree | 2a1a6a9eab888aae00a00dc3c4cf80502667c872 | |
parent | a965a1759fb94830353f610a60887eff0cbcaf08 (diff) | |
download | php-git-bc631cce3e40156464dd68b5db809726a6072cc7.tar.gz |
some keyboard constants
-rw-r--r-- | ext/ncurses/ncurses.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/ncurses/ncurses.c b/ext/ncurses/ncurses.c index fda1d16810..f3f3089821 100644 --- a/ext/ncurses/ncurses.c +++ b/ext/ncurses/ncurses.c @@ -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; |