xwt
2 小时以前 85fd8ec92dc19f1a478f010723fa85ec7ec670a2
1
2
3
4
5
6
7
// workaround for tty output truncation upon process.exit()
// https://github.com/nodejs/node/issues/6456
 
[process.stdout, process.stderr].forEach((s) => {
  s && s.isTTY && s._handle && s._handle.setBlocking &&
    s._handle.setBlocking(true)
});