API/api.medcify.app/node_modules/charm/example/position.js
2022-09-26 11:41:44 +05:30

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);
});