2
2
mirror of https://git.coolaj86.com/coolaj86/telebit.js.git synced 2025-03-03 07:00:45 +00:00
This commit is contained in:
AJ ONeal 2018-06-13 12:54:27 -06:00
parent c981544bad
commit d09118f8a3

View File

@ -96,6 +96,8 @@ function askForConfig(answers, mainCb) {
var rl = readline.createInterface({
input: stdin
, output: process.stdout
// https://github.com/nodejs/node/issues/21319
, terminal: !useTty
});
// NOTE: Use of setTimeout
@ -306,6 +308,7 @@ function askForConfig(answers, mainCb) {
function next() {
var q = nextSet.shift();
if (!q) {
// https://github.com/nodejs/node/issues/21319
if (useTty) { stdin.close(); }
rl.close(); mainCb(null, answers);
return;