From d09118f8a3e75f0b5456e7a10e174c5fb78e4f79 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 13 Jun 2018 12:54:27 -0600 Subject: [PATCH] workaround for https://github.com/nodejs/node/issues/21319 --- bin/telebit.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/telebit.js b/bin/telebit.js index e5f3a59..5233da2 100644 --- a/bin/telebit.js +++ b/bin/telebit.js @@ -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;