Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interfacing with the mouse #19

Open
cbou opened this issue Aug 4, 2012 · 3 comments
Open

Interfacing with the mouse #19

cbou opened this issue Aug 4, 2012 · 3 comments

Comments

@cbou
Copy link

cbou commented Aug 4, 2012

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

http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/mouse.html

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Author

cbou commented Aug 4, 2012

I tried something here: cbou@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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants