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
I am using the incoming version and it has a TTY object which seems to be responsible of reading from stdin and writing to stdout. Basically I need to redirect these two to a JS library to parse (termlib.js in my case). I cannot seem to be able to use the FS.init as I get Input is not from a terminal in the console of my application. So I was wondering if this TTY.register can be useful or not. Couldn't find any documentation about how to use it.
The text was updated successfully, but these errors were encountered:
Those internal details might not be well-documented, yeah - only option may be to read the source code in library_fs.js.
If all you need is stdin/stdout, though, then I believe you can define stdin and stdout on Module (a quick read in the source seems to support that too). However, I don't see this documented on
This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 7 days. Feel free to re-open at any time if this issue is still relevant.
I am using the incoming version and it has a TTY object which seems to be responsible of reading from stdin and writing to stdout. Basically I need to redirect these two to a JS library to parse (termlib.js in my case). I cannot seem to be able to use the
FS.init
as I getInput is not from a terminal
in the console of my application. So I was wondering if thisTTY.register
can be useful or not. Couldn't find any documentation about how to use it.The text was updated successfully, but these errors were encountered: