- Richard L. (firstname.lastname@example.org) wrote:
I’ve tried… and I’ve looked around.
A few other projects have the line with ‘Ncurses::mousemask…’ in
them - but it’s always commented out… like they couldn’t get it
Is this feature not functional?
It’s a bug in the method definition; see below.
I’ve currently got ‘Ncurses::mousemask(Ncurses::ALL_MOUSE_EVENTS,)’
and the error ‘wrong number of arguments (2 for 1)’ and as soon as I
drop the second arg I get the error ‘oldmask (2nd argument) must be an
empty Array’ which is kinda bothersome…
It’s a bug in the library. It’s been there forever (I came across it
when I was trying to add mouse support to Raggle, then just forgot to
send a patch upstream).
Any hints? Tobias?
Apply this patch (also attached):
diff -ur ncurses-ruby-0.9.2/ncurses_wrap.c
— ncurses-ruby-0.9.2/ncurses_wrap.c 2005-12-12 16:33:00.000000000
+++ ncurses-ruby-0.9.2-mousemask/ncurses_wrap.c 2005-02-26
@@ -2387,7 +2387,7 @@
- NCFUNC(mousemask, 1);