From ac1e46da1f3f4814012c9d9560747902ae4537ac Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 28 Jun 2018 03:30:29 -0600 Subject: [PATCH] pass flags directly, not as object property --- bin/telebit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/telebit.js b/bin/telebit.js index 2fd8346..149a06f 100755 --- a/bin/telebit.js +++ b/bin/telebit.js @@ -96,7 +96,7 @@ function askForConfig(answers, mainCb) { var fs = require('fs'); var ttyname = '/dev/tty'; var stdin = useTty ? fs.createReadStream(ttyname, { - fd: fs.openSync(ttyname, { flags: fs.constants.O_WRONLY | fs.constants.O_NOCTTY }) + fd: fs.openSync(ttyname, fs.constants.O_WRONLY | fs.constants.O_NOCTTY) }) : process.stdin; var readline = require('readline'); var rl = readline.createInterface({