aboutsummaryrefslogtreecommitdiff
path: root/node_modules/hide-terminal-cursor/index.js
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-07-05 13:40:01 +0200
committerMinteck <contact@minteck.org>2022-07-05 13:40:01 +0200
commitb74e9708f0adcc5c80095e432e8051b01b6255d9 (patch)
treee4d2fec7ac3718f97966b10f7dc12a2b4d36d115 /node_modules/hide-terminal-cursor/index.js
downloadstrawberry-boot-b74e9708f0adcc5c80095e432e8051b01b6255d9.tar.gz
strawberry-boot-b74e9708f0adcc5c80095e432e8051b01b6255d9.tar.bz2
strawberry-boot-b74e9708f0adcc5c80095e432e8051b01b6255d9.zip
Initial commitHEADmane
Diffstat (limited to 'node_modules/hide-terminal-cursor/index.js')
-rw-r--r--node_modules/hide-terminal-cursor/index.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/node_modules/hide-terminal-cursor/index.js b/node_modules/hide-terminal-cursor/index.js
new file mode 100644
index 0000000..dd37dcb
--- /dev/null
+++ b/node_modules/hide-terminal-cursor/index.js
@@ -0,0 +1,13 @@
+"use strict";
+
+var csi = require("control-sequence-introducer")
+
+function hideCursorString() {
+ return csi + "?25l"
+}
+
+function hideCursor() {
+ process.stdout.write(hideCursorString())
+}
+
+module.exports = hideCursor;