Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tty: don't read from console stream upon creation
The tty.ReadStream constructor initializes this as a socket, which causes a read to be initiated. Even though during stdin initalization we call readStop shortly after, the read operation can consume keypress events from the system buffers. Fixes: nodejs#5384 PR-URL: nodejs#5776 Reviewed-By: cjihrig - Colin Ihrig <[email protected]> Reviewed-By: jasnell - James M Snell <[email protected]>
- Loading branch information