8 lines
143 B
JavaScript
8 lines
143 B
JavaScript
var charm = require('charm')(process);
|
|
|
|
charm.on('^C', process.exit);
|
|
|
|
charm.position(function (x, y) {
|
|
console.log('(%d, %d)', x, y);
|
|
});
|