Skip to content

Close readline in StdinDiscarder without changing stdin's pause state#210

Merged
sindresorhus merged 1 commit intosindresorhus:mainfrom
clavin:main
Jun 26, 2022
Merged

Close readline in StdinDiscarder without changing stdin's pause state#210
sindresorhus merged 1 commit intosindresorhus:mainfrom
clavin:main

Conversation

@clavin
Copy link
Copy Markdown
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