Charles
Charles

Reputation: 11796

node.js mouse press event in the shell

Is it possible to track mouse click on the shell in node.js.

Something link:

process.on('mousepress', function(data){

});

Upvotes: 0

Views: 2359

Answers (2)

Cameron Tacklind
Cameron Tacklind

Reputation: 7253

The keypress package has this feature:

https://www.npmjs.com/package/keypress#listening-for-mousepress-events

Upvotes: 1

3on
3on

Reputation: 6339

Maybe this could help: https://github.com/mscdex/node-ncurses

Upvotes: 1

Related Questions