securityos/node_modules/restore-cursor/index.js

12 lines
263 B
JavaScript
Raw Permalink Normal View History

2024-09-06 15:32:35 +00:00
import process from 'node:process';
import onetime from 'onetime';
import signalExit from 'signal-exit';
const restoreCursor = onetime(() => {
signalExit(() => {
process.stderr.write('\u001B[?25h');
}, {alwaysLast: true});
});
export default restoreCursor;