鏡像自
https://git.coolaj86.com/coolaj86/telebit.js.git
synced 2025-07-03 01:56:31 +00:00
useTty only when useTty is selected
This commit is contained in:
父節點
1ff12d01f4
當前提交
ad4ab2a06a
@ -91,7 +91,7 @@ function askForConfig(answers, mainCb) {
|
|||||||
answers = answers || {};
|
answers = answers || {};
|
||||||
//console.log("Please create a config file at '" + confpath + "' or specify --config /path/to/config");
|
//console.log("Please create a config file at '" + confpath + "' or specify --config /path/to/config");
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
var stdin = useTty ? process.stdin : fs.createReadStream('/dev/tty');
|
var stdin = useTty ? fs.createReadStream('/dev/tty') : process.stdin;
|
||||||
var readline = require('readline');
|
var readline = require('readline');
|
||||||
var rl = readline.createInterface({
|
var rl = readline.createInterface({
|
||||||
input: stdin
|
input: stdin
|
||||||
|
載入中…
x
新增問題並參考
Block a user