summaryrefslogtreecommitdiff
path: root/ext/ncurses/ncurses.c
diff options
context:
space:
mode:
authorGeorg Richter <georg@php.net>2001-12-25 23:30:55 +0000
committerGeorg Richter <georg@php.net>2001-12-25 23:30:55 +0000
commit1ca88c9276c314119018c2931d90fae918b259c5 (patch)
treecba1a68a02790bad6f8f14eb0d2cfb437d5d6861 /ext/ncurses/ncurses.c
parente1e02af55b43174ebab7df8076b26442be64fee3 (diff)
downloadphp-git-1ca88c9276c314119018c2931d90fae918b259c5.tar.gz
activated ncurses_instr
New functions: ncurses_longname, ncurses_termname, ncurses_mousemask
Diffstat (limited to 'ext/ncurses/ncurses.c')
-rw-r--r--ext/ncurses/ncurses.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/ext/ncurses/ncurses.c b/ext/ncurses/ncurses.c
index 370c1b45bd..775dc9787d 100644
--- a/ext/ncurses/ncurses.c
+++ b/ext/ncurses/ncurses.c
@@ -96,6 +96,34 @@ PHP_MINIT_FUNCTION(ncurses)
PHP_NCURSES_CONST(KEY_RIGHT);
PHP_NCURSES_CONST(KEY_BACKSPACE);
+ /* mouse constants */
+ PHP_NCURSES_CONST(BUTTON1_PRESSED);
+ PHP_NCURSES_CONST(BUTTON1_RELEASED);
+ PHP_NCURSES_CONST(BUTTON1_CLICKED);
+ PHP_NCURSES_CONST(BUTTON1_DOUBLE_CLICKED);
+ PHP_NCURSES_CONST(BUTTON1_TRIPLE_CLICKED);
+ PHP_NCURSES_CONST(BUTTON2_PRESSED);
+ PHP_NCURSES_CONST(BUTTON2_RELEASED);
+ PHP_NCURSES_CONST(BUTTON2_CLICKED);
+ PHP_NCURSES_CONST(BUTTON2_DOUBLE_CLICKED);
+ PHP_NCURSES_CONST(BUTTON2_TRIPLE_CLICKED);
+ PHP_NCURSES_CONST(BUTTON3_PRESSED);
+ PHP_NCURSES_CONST(BUTTON3_RELEASED);
+ PHP_NCURSES_CONST(BUTTON3_CLICKED);
+ PHP_NCURSES_CONST(BUTTON3_DOUBLE_CLICKED);
+ PHP_NCURSES_CONST(BUTTON3_TRIPLE_CLICKED);
+ PHP_NCURSES_CONST(BUTTON4_PRESSED);
+ PHP_NCURSES_CONST(BUTTON4_RELEASED);
+ PHP_NCURSES_CONST(BUTTON4_CLICKED);
+ PHP_NCURSES_CONST(BUTTON4_DOUBLE_CLICKED);
+ PHP_NCURSES_CONST(BUTTON4_TRIPLE_CLICKED);
+ PHP_NCURSES_CONST(BUTTON_SHIFT);
+ PHP_NCURSES_CONST(BUTTON_CTRL);
+ PHP_NCURSES_CONST(BUTTON_ALT);
+ PHP_NCURSES_CONST(ALL_MOUSE_EVENTS);
+ PHP_NCURSES_CONST(REPORT_MOUSE_POSITION);
+
+
le_ncurses = zend_register_list_destructors_ex(ncurses_destruct, NULL, "ncurses_handle", module_number);
return SUCCESS;