Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set stdout/stderr ttys to blocking #938

Closed
novemberborn opened this issue Jun 26, 2016 · 1 comment
Closed

Set stdout/stderr ttys to blocking #938

novemberborn opened this issue Jun 26, 2016 · 1 comment
Labels
enhancement new functionality

Comments

@novemberborn
Copy link
Member

From npm v3.10.0 release notes:

As a part of this change we now explicitly set process.stdout and process.stderr to be blocking if they are ttys, using set-blocking. This is necessary to ensure that we can fully erase the progress bar before we start writing other things out to the console.

This seems relevant for AVA too.

@novemberborn novemberborn added the enhancement new functionality label Jun 26, 2016
@sindresorhus
Copy link
Member

It was only an issue on Node.js 6 and now fixed in Node.js 6.2.1:

tty: Default to blocking mode for stdio on OS X. A bug fix in libuv 1.9.0, introduced in Node.js v6.0.0, exposed problems with Node's use of non-blocking stdio, particularly on OS X which has a small output buffer. This change should fix CLI applications that have been having problems with output since Node.js v6.0.0 on OS X. The core team is continuing to address stdio concerns that exist across supported platforms and progress can be tracked at nodejs/node#6980. (Jeremiah Senkpiel) #6895 - https://nodejs.org/en/blog/release/v6.2.1/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement new functionality
Projects
None yet
Development

No branches or pull requests

2 participants