aboutsummaryrefslogtreecommitdiff
path: root/node_modules/restore-cursor/index.js
blob: 0c117e9ad6090501d9e37081db67a9155eb5d1b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
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;