aboutsummaryrefslogtreecommitdiff
path: root/node_modules/hide-terminal-cursor
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/hide-terminal-cursor')
-rw-r--r--node_modules/hide-terminal-cursor/.npmignore1
-rw-r--r--node_modules/hide-terminal-cursor/index.js13
-rw-r--r--node_modules/hide-terminal-cursor/package.json27
-rw-r--r--node_modules/hide-terminal-cursor/readme.md20
4 files changed, 61 insertions, 0 deletions
diff --git a/node_modules/hide-terminal-cursor/.npmignore b/node_modules/hide-terminal-cursor/.npmignore
new file mode 100644
index 0000000..b512c09
--- /dev/null
+++ b/node_modules/hide-terminal-cursor/.npmignore
@@ -0,0 +1 @@
+node_modules \ No newline at end of file
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;
diff --git a/node_modules/hide-terminal-cursor/package.json b/node_modules/hide-terminal-cursor/package.json
new file mode 100644
index 0000000..2d95100
--- /dev/null
+++ b/node_modules/hide-terminal-cursor/package.json
@@ -0,0 +1,27 @@
+{
+ "name": "hide-terminal-cursor",
+ "version": "0.0.1",
+ "description": "Hide the terminal cursor.",
+ "main": "index.js",
+ "scripts": {
+ "test": "mocha test.js"
+ },
+ "repository": "joegesualdo/hide-terminal-cursor",
+ "keywords": [
+ "cursor",
+ "terminal",
+ "hide",
+ "display"
+ ],
+ "author": {
+ "name": "Joe Gesualdo"
+ },
+ "license": "MIT",
+ "devDependencies": {
+ "mocha": "*",
+ "chai": "*"
+ },
+ "dependencies": {
+ "control-sequence-introducer": "0.0.2"
+ }
+}
diff --git a/node_modules/hide-terminal-cursor/readme.md b/node_modules/hide-terminal-cursor/readme.md
new file mode 100644
index 0000000..a8f1396
--- /dev/null
+++ b/node_modules/hide-terminal-cursor/readme.md
@@ -0,0 +1,20 @@
+## hide-terminal-cursor
+> Hide the terminal cursor.
+
+## Install
+```
+$ npm install --save hide-terminal-cursor
+```
+
+## Usage
+```javascript
+var hideCursor = require("hide-terminal-cursor")
+
+hideCursor();
+```
+
+## Related
+- [show-terminal-cursor](https://github.com/joegesualdo/show-terminal-cursor) - Shows the terminal cursor.
+
+## License
+MIT © [Joe Gesualdo]()