mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-02 21:49:31 +08:00
7 lines
252 B
Text
7 lines
252 B
Text
module.exports = function (blocking) {
|
|
[process.stdout, process.stderr].forEach(function (stream) {
|
|
if (stream._handle && stream.isTTY && typeof stream._handle.setBlocking === 'function') {
|
|
stream._handle.setBlocking(blocking)
|
|
}
|
|
})
|
|
}
|