mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-29 05:09:46 +01:00
7 lines
249 B
JavaScript
7 lines
249 B
JavaScript
// 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)
|
|
});
|