I thought to make an simple server http server with some console extension. I found the snippet to read from command line data.
var i = rl.createInterface(process.stdin, process.stdout, null);
i.question('Write your name: ', function(answer) {
console.log('Nice to meet you> ' + answer);
i.close();
process.stdin.destroy();
});
well to ask the questions repeatedly, i cant simply use the while(done) { }
loop? Also well if the server receives output at the question time, it ruins the line.
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…