PHP » PYTHON |
login |
register |
about
|
PYTHON ncurses_mousemask
is this article helpful?
|
Python replacement for PHP's ncurses_mousemask
[
edit
| history
]
import curses (availamask, oldmask) = curses.mousemask(newmask) ncurses_mousemask(PHP 4 >= 4.2.0, PHP 5, PECL ncurses >= 1.0.0) ncurses_mousemask — Sets mouse options Description
int ncurses_mousemask
( int $newmask
, int &$oldmask
)
Warning
This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk. Sets mouse events to be reported. By default no mouse events will be reported. Mouse events are represented by NCURSES_KEY_MOUSE in the ncurses_wgetch() input stream. To read the event data and pop the event of queue, call ncurses_getmouse(). Parameters
Return ValuesReturns a mask to indicated which of the in parameter newmask specified mouse events can be reported. On complete failure, it returns 0. Examples
Example #1 ncurses_mousemask() example
<?php
See Also
|
more
Recently updated
more
Most requested
|