Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
process.on('exit', function () {
//disable mouse on exit, so that the state is back to normal for the terminal.
keypress.disableMouse(charm);
});
process.on('exit', function () {
keypress.disableMouse(process.stdout);
});
process.stdin.resume();