]> granicus.if.org Git - php/commitdiff
added support for HOME and END key
authorGeorg Richter <georg@php.net>
Wed, 11 Apr 2007 18:37:15 +0000 (18:37 +0000)
committerGeorg Richter <georg@php.net>
Wed, 11 Apr 2007 18:37:15 +0000 (18:37 +0000)
ext/ncurses/ncurses.c

index a2e5ad80722a675ab02c266996233610cef00178..3ae3fa45acc2416d16a5f5ccae4226c70f74372f 100644 (file)
@@ -98,11 +98,12 @@ PHP_MINIT_FUNCTION(ncurses)
        PHP_NCURSES_CONST(KEY_UP);
        PHP_NCURSES_CONST(KEY_LEFT);
        PHP_NCURSES_CONST(KEY_RIGHT);
+       PHP_NCURSES_CONST(KEY_HOME);
+       PHP_NCURSES_CONST(KEY_END);
        PHP_NCURSES_CONST(KEY_BACKSPACE);
        PHP_NCURSES_CONST(KEY_MOUSE);
        PHP_NCURSES_CONST(KEY_F0);
 
-
        /* TODO:this macro sux, we have 65 function key,
           so we need a little loop */
        PHP_NCURSES_FKEY_CONST(1);