You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! First, many thanks for supporting process.stdin in nodejs! This was really a feature I was waiting for! :-)
Please note that the sample code below does not work as expected though, as the program hangs (waiting for further input) and does not exit after input as it should. rl.close() should indeed close the interface and let the program close.
Thanks for testing the feature! I can confirm this issue and will look into it. As a workaround, it is possible to end the program by pressing command-c on the keyboard (or its button).
Update: Not quite sure what caused this but another workaround I found is setTimeout(() => {rl.close()}).
Hi! First, many thanks for supporting
process.stdin
in nodejs! This was really a feature I was waiting for! :-)Please note that the sample code below does not work as expected though, as the program hangs (waiting for further input) and does not exit after input as it should.
rl.close()
should indeed close the interface and let the program close.Kind regards,
Maurice
The text was updated successfully, but these errors were encountered: