Term Mouse
A mouse reporting interface
Based on TooTallNate's gist
Example
var mouse = require('term-mouse');
mouse(process);
mouse.on('click', function(e) {
console.log('you clicked %d,%d with the %s mouse button', e.x, e.y, e.button);
});
mouse.on('scroll', function(e) {
console.log('you scrolled %s', e.button);
});
mouse.start();
require('exit-hook')(mouse.stop.bind(mouse));