workshopper-adventure
Advanced tools
Comparing version 3.0.1 to 3.0.2
12
menu.js
@@ -13,2 +13,3 @@ const tmenu = require('terminal-menu') | ||
process.stdin.pause() | ||
@@ -68,2 +69,7 @@ function showMenu (opts, i18n) { | ||
function passDataToMenu(data) { | ||
// Node 0.10 fix | ||
menuStream.write(data) | ||
} | ||
menu.on('select', function (label) { | ||
@@ -74,2 +80,3 @@ menu.y = 0 | ||
process.stdin.pause() | ||
process.stdin.removeListener('data', passDataToMenu) | ||
menuStream.unpipe(process.stdout) | ||
@@ -82,5 +89,6 @@ process.stdin.unpipe(menuStream) | ||
process.stdin | ||
.pipe(menuStream, {end: false}) | ||
.pipe(process.stdout, {end: false}) | ||
.on("data", passDataToMenu) | ||
menuStream.pipe(process.stdout, {end: false}) | ||
if(!process.stdin.isTTY) { | ||
@@ -87,0 +95,0 @@ menu.reset() |
{ | ||
"name": "workshopper-adventure", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "A terminal workshop runner framework (adventure compatible)", | ||
@@ -5,0 +5,0 @@ "main": "./index.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
73984
1510