diff options
author | Minteck <contact@minteck.org> | 2022-07-05 13:40:01 +0200 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-07-05 13:40:01 +0200 |
commit | b74e9708f0adcc5c80095e432e8051b01b6255d9 (patch) | |
tree | e4d2fec7ac3718f97966b10f7dc12a2b4d36d115 /node_modules/hide-terminal-cursor/index.js | |
download | strawberry-boot-b74e9708f0adcc5c80095e432e8051b01b6255d9.tar.gz strawberry-boot-b74e9708f0adcc5c80095e432e8051b01b6255d9.tar.bz2 strawberry-boot-b74e9708f0adcc5c80095e432e8051b01b6255d9.zip |
Diffstat (limited to 'node_modules/hide-terminal-cursor/index.js')
-rw-r--r-- | node_modules/hide-terminal-cursor/index.js | 13 |
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; |