Comparing version 0.1.19 to 0.1.20
@@ -159,38 +159,1 @@ /** | ||
}); | ||
// NOTE: Leave these here for now if we | ||
// want to potentially support node <=v0.6.0. | ||
helpers.isTTY = function(stream) { | ||
if (stream.setRawMode || stream.isTTY) { | ||
return true; | ||
} | ||
if (stream === process.stdin) { | ||
return true; | ||
} | ||
// if (stream.fd != null) { | ||
// return require('tty').isatty(stream.fd); | ||
// } | ||
return false; | ||
}; | ||
helpers.setRawMode = function(stream, value) { | ||
if (stream.setRawMode) { | ||
return stream.setRawMode(value); | ||
} | ||
if (stream === process.stdin) { | ||
helpers._isRaw = value; | ||
return require('tty').setRawMode(value); | ||
} | ||
throw new Error('Could not set raw mode.'); | ||
}; | ||
helpers.isRaw = function(stream) { | ||
if (stream.isRaw != null) { | ||
return stream.isRaw; | ||
} | ||
if (stream === process.stdin) { | ||
return !!helpers._isRaw; | ||
} | ||
throw new Error('Could not check raw mode.'); | ||
}; |
@@ -1725,3 +1725,5 @@ /** | ||
program.input.pause(); | ||
program.input.setRawMode(false); | ||
if (program.input.setRawMode) { | ||
program.input.setRawMode(false); | ||
} | ||
@@ -1732,3 +1734,5 @@ var resume = function() { | ||
program.input.setRawMode(true); | ||
if (program.input.setRawMode) { | ||
program.input.setRawMode(true); | ||
} | ||
program.input.resume(); | ||
@@ -1735,0 +1739,0 @@ program.output.write = write; |
@@ -5,3 +5,3 @@ { | ||
"author": "Christopher Jeffrey", | ||
"version": "0.1.19", | ||
"version": "0.1.20", | ||
"main": "./lib/blessed.js", | ||
@@ -15,2 +15,5 @@ "bin": "./bin/tput.js", | ||
"tags": ["curses", "tui", "tput", "terminfo", "termcap"], | ||
"engines": { | ||
"node": ">= 0.8.0" | ||
}, | ||
"browserify": { | ||
@@ -17,0 +20,0 @@ "transform": ["./browser/transform.js"] |
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
1642634
57360