Skip to content

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

@TooTallNate

Description

@TooTallNate

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('foo@bar.com\r');

But this does:

child.write('foo@bar.com');
await sleep(100);
child.write('\r');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions