Comparing version 0.2.0 to 0.2.1
@@ -73,3 +73,4 @@ /** | ||
// Close the readline | ||
this.rl.pause(); | ||
this.rl.close(); | ||
this.rl = null; | ||
@@ -136,5 +137,5 @@ if ( _.isFunction(allDone) ) { | ||
this.rl.output.unmute(); | ||
process.stdout.write("\033[?25h"); | ||
process.stdout.write("\033[?25h"); // show cursor | ||
this.rl.close(); | ||
console.log("\n"); // Line return | ||
}.bind(cli); |
{ | ||
"name": "inquirer", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "A collection of common interactive command line user interfaces.", | ||
@@ -5,0 +5,0 @@ "main": "lib/inquirer.js", |
@@ -27,3 +27,4 @@ /** | ||
expect(rl.resume.called).to.be.true; | ||
expect(rl.pause.called).to.be.true; | ||
expect(rl.close.called).to.be.true; | ||
expect(inquirer.rl).to.be.null; | ||
@@ -37,3 +38,4 @@ rl = inquirer.rl = new ReadlineStub(); | ||
expect(rl.resume.called).to.be.true; | ||
expect(rl.pause.called).to.be.true; | ||
expect(rl.close.called).to.be.true; | ||
expect(inquirer.rl).to.be.null; | ||
done(); | ||
@@ -40,0 +42,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
93993
41
2558