Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Only checks the first char of a "data" event for control chars #21

Open
TooTallNate opened this issue Aug 9, 2017 · 0 comments
Open

Comments

@TooTallNate
Copy link
Member

I'm attempting to interact with this module programmatically (via node-pty and a child process) and noticed that I have to send the \r char separately (and after a short delay, so that the OS sends the data separately) from the rest of the payload.

So basically this does not work:

child.write('[email protected]\r');

But this does:

child.write('[email protected]');
await sleep(100);
child.write('\r');
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

No branches or pull requests

1 participant