var stdin = process.openStdin(); require('tty').setRawMode(true);stdin.on('keypress', function (chunk, key) { process.stdout.write('Get Chunk: ' + chunk + 'n'); if (key && key.ctrl && key.name == 'c') process.exit();});
欢迎分享,转载请注明来源:内存溢出
var stdin = process.openStdin(); require('tty').setRawMode(true);stdin.on('keypress', function (chunk, key) { process.stdout.write('Get Chunk: ' + chunk + 'n'); if (key && key.ctrl && key.name == 'c') process.exit();});
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)