smooth bigspinner

This commit is contained in:
Trent Mick 2015-08-26 15:01:54 -07:00
parent 83b1cf188f
commit 16c3747605
2 changed files with 5 additions and 4 deletions

View File

@ -112,12 +112,13 @@ function do_create_instance(subcmd, opts, args, callback) {
if (!opts.quiet && process.stderr.isTTY) {
var BORDER = 10;
spinner = bigspinner.createSpinner({
delay: 250,
delay: 50,
positions: 40,
stream: process.stderr,
height: Math.max(2, process.stdout.rows - 2 - BORDER),
width: Math.max(2, process.stdout.columns - 1 - BORDER),
hideCursor: true,
fontChar: '#'
fontChar: '\u2588' // '\x1b[7m \x1b[m'
});
}

View File

@ -7,7 +7,7 @@
"dependencies": {
"assert-plus": "0.1.5",
"backoff": "2.4.1",
"bigspinner": "^3.0.0",
"bigspinner": "3.1.0",
"bunyan": "1.4.0",
"cmdln": "3.2.3",
"dashdash": "1.10.0",
@ -23,7 +23,7 @@
"verror": "1.6.0"
},
"bin": {
"triton": "./bin/triton"
"triton": "./bin/triton"
},
"engines": {
"node": ">=0.10"