Skip to content

process.stdin.setRawMode is undefined #2160

@sabrehagen

Description

@sabrehagen

In io.js 2.3.3 process.stdin.setRawMode is not a defined function. The docs here contradict this: https://iojs.org/api/tty.html#tty_tty_setrawmode_mode

When trying to use tty.setRawMode(true) the following message is received:
(node) tty.setRawMode is deprecated. Use process.stdin.setRawMode instead.

This means stdin can only be used in buffered mode, the ability to create 'keypress' events as recreated by @TooTallNate is not possible without this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    processIssues and PRs related to the process subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions