Comparing version 0.1.0 to 0.1.1
15
index.js
@@ -46,6 +46,19 @@ var tty = require('tty'); | ||
charm.once('^C', process.exit); | ||
charm.once('end', function () { | ||
if (input) { | ||
if (typeof input.fd === 'number' && tty.isatty(input.fd)) { | ||
if (process.stdin.setRawMode) { | ||
process.stdin.setRawMode(false); | ||
} | ||
else tty.setRawMode(false); | ||
} | ||
input.destroy(); | ||
} | ||
}); | ||
return charm; | ||
}; | ||
function Charm () { | ||
var Charm = exports.Charm = function Charm () { | ||
this.writable = true; | ||
@@ -52,0 +65,0 @@ this.readable = true; |
{ | ||
"name" : "charm", | ||
"version" : "0.1.0", | ||
"version" : "0.1.1", | ||
"description" : "ansi control sequences for terminal cursor hopping and colors", | ||
@@ -5,0 +5,0 @@ "main" : "index.js", |
Sorry, the diff of this file is not supported yet
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
17897
13
460
217