rl.on("SIGINT", function () { rl.clearLine(); rl.question("Confirm exit : ", function (answer) { return (answer.match(/^o(ui)?$/i) || answer.match(/^y(es)?$/i)) ? process.exit(1) : rl.output.write("> "); }); });
rl.on("SIGINT", function () { rl.clearLine(); rl.question("Confirm exit : ", function (answer) { return (answer.match(/^o(ui)?$/i) || answer.match(/^y(es)?$/i)) ? process.exit(1) : rl.output.write("> "); }); });