diff --git a/functions/ncurses.xml b/functions/ncurses.xml index 0ea5599634..1479395e59 100644 --- a/functions/ncurses.xml +++ b/functions/ncurses.xml @@ -1,5 +1,5 @@ - + Ncurses terminal screen control functions ncurses functions @@ -2681,11 +2681,10 @@ if ($mask & $newmask){ &warn.experimental.func; - ncurses_getmouse reads mouse event a pop - event out of queue. Function - ncurses_getmouse will return ;&false; if a - mouse event is actually visible in the given window, otherwise it - will return &true;. + ncurses_getmouse reads mouse event out of + queue. Function ncurses_getmouse will return + ;&false; if a mouse event is actually visible in the given + window, otherwise it will return &true;. Event options will be delivered in parameter mevent, which has to be an array, passed by reference (see example below). @@ -2703,10 +2702,6 @@ if ($mask & $newmask){ - ncurses_getmouse returns &false; on - success, otherwise &true;. - - <function>ncurses_getmouse</function> example @@ -2714,7 +2709,7 @@ if ($mask & $newmask){ switch (ncurses_getch){ case NCURSES_KEY_MOUSE: - if (!ncurses_getmouse($mevent)){ + if (!ncurses_getmouse(&$mevent)){ if ($mevent["mmask"] & NCURSES_MOUSE_BUTTON1_PRESSED){ $mouse_x = $mevent["x"]; // Save mouse position $mouse_y = $mevent["y"];