aboutsummaryrefslogtreecommitdiff
path: root/node_modules/restore-cursor/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/restore-cursor/index.js')
-rw-r--r--node_modules/restore-cursor/index.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/node_modules/restore-cursor/index.js b/node_modules/restore-cursor/index.js
new file mode 100644
index 0000000..2b8e009
--- /dev/null
+++ b/node_modules/restore-cursor/index.js
@@ -0,0 +1,9 @@
+'use strict';
+const onetime = require('onetime');
+const signalExit = require('signal-exit');
+
+module.exports = onetime(() => {
+ signalExit(() => {
+ process.stderr.write('\u001b[?25h');
+ }, {alwaysLast: true});
+});