Skip to content

process.stdin.setRawMode(true) does not return process.stdin? #22916

Closed
@ORESoftware

Description

@ORESoftware

I have this:

process.stdin.setRawMode(true);

but I cannot use it like so:

process.stdin.setRawMode(true).on('data' fn);

just curious if that is true and why that is. It could just be that the TypeScript typings are wrong.
Anyway, I would expect that process.stdin.setRawMode() would return the same thing as process.stdin.setEncoding().

Metadata

Metadata

Assignees

No one assigned

    Labels

    ttyIssues and PRs related to the tty subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions