Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@clavin
Copy link
Contributor

@clavin clavin commented Jun 24, 2022

Patches the close in StdinDiscarder to keep stdin unpaused if it was already in that state. readline.close() has the undocumented side-effect of pausing the input stream, in this case stdin.

Fixes #209.

@sindresorhus sindresorhus merged commit 77ccc1e into sindresorhus:main Jun 26, 2022
sindresorhus added a commit that referenced this pull request Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stdin becomes paused at close only when using StdinDiscarder with TTY

2 participants