test02/node_modules/restore-cursor/index.js
罗佳鸿 6aa1ebe342
Some checks are pending
部署文档 / deploy-gh-pages (push) Waiting to run
first commit
2024-08-13 10:11:19 +08:00

12 lines
263 B
JavaScript

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;