Init
This commit is contained in:
commit
4e066bffc9
10017 changed files with 1322084 additions and 0 deletions
26
node_modules/cli-cursor/index.js
generated
vendored
Normal file
26
node_modules/cli-cursor/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
'use strict';
|
||||
var restoreCursor = require('restore-cursor');
|
||||
var hidden = false;
|
||||
|
||||
exports.show = function () {
|
||||
hidden = false;
|
||||
process.stdout.write('\u001b[?25h');
|
||||
};
|
||||
|
||||
exports.hide = function () {
|
||||
restoreCursor();
|
||||
hidden = true;
|
||||
process.stdout.write('\u001b[?25l');
|
||||
};
|
||||
|
||||
exports.toggle = function (force) {
|
||||
if (force !== undefined) {
|
||||
hidden = force;
|
||||
}
|
||||
|
||||
if (hidden) {
|
||||
exports.show();
|
||||
} else {
|
||||
exports.hide();
|
||||
}
|
||||
};
|
||||
Loading…
Reference in a new issue