Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Interfacing with the mouse #19

cbou opened this Issue Aug 4, 2012 · 3 comments


None yet
2 participants

cbou commented Aug 4, 2012

It's possible to detect click on the shell with ncurses.


Is there any problem with the integration of the feature in node-ncurses ?

I just ask for advices and tipps, maybe I could try to do it.


mscdex commented Aug 4, 2012

Yeah, mouse support has been in the TODO for a long time now.

As far as I know it should be possible to implement, it's just a matter of taking the time to do it and making sure it's well tested. Pull requests are welcome :-)

cbou commented Aug 4, 2012

Thanks for your answer, maybe I will take time to try it.
I think it could be done in the same way than inputChar.

cbou commented Aug 4, 2012

I tried something here: cbou/node-ncurses@e1bb2dc

I'm not a cpp pro so it's maybe bad.

But it works, I commit a new example too.

It's not ready for push because there is a small problem.
If the click is too fast, it won't be detect.
Longer click like 500ms - 1sec will be.

Any suggestions or improvements ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment