sindresorhus / ora

Elegant terminal spinner
MIT License
9.08k stars 269 forks source link

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

Closed clavin closed 2 years ago

clavin commented 2 years ago

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.