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
{{ message }}
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
It's because lib/readline.js checks if output.isTTY === true, which it always is for process.stdout, whether or not STDOUT_FILENO is actually a tty. It's a bug in lib/tty.js because it unconditionally sets WriteStream.prototype.isTTY = true
I've been working with node.js a little and I'm trying to read some config values in through stdin on program start. This is what I came up with:
https://gist.github.com/anonymous/5392981
However, when running like the following, it only outputs "end", not "closed"
Adding terminal: false fixes it, but according to the docs this shouldn't be the case.
https://gist.github.com/gluxon/5393130
The docs say that any time input's "end" is triggered, readline's "close" should be.
Is this just something I'm missing, or is this an actual issue?
The text was updated successfully, but these errors were encountered: