2023-10-03 11:14:36 +08:00
|
|
|
// 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)
|
|
|
|
});
|