TooTallNate / keypress

Make any Node ReadableStream emit "keypress" events
358 stars 60 forks source link

Example code doesn't work #4

Closed pronebird closed 11 years ago

pronebird commented 12 years ago

process.stdin.setRawMode(true); ^ TypeError: Object # has no method 'setRawMode'

What am I doing wrong?

TooTallNate commented 12 years ago

What version of node? For v0.6.x, it was called tty.setRawMode() instead.

pronebird commented 12 years ago

Surprisingly it's 0.8.14 / mac

TooTallNate commented 12 years ago

Hmmmm, what terminal? Are you piping from a file or another program?

On Sunday, November 25, 2012, Andrej Mihajlov wrote:

Surprisingly it's 0.8.14

— Reply to this email directly or view it on GitHubhttps://github.com/TooTallNate/keypress/issues/4#issuecomment-10698051.

pronebird commented 12 years ago

It's standard terminal, I think that the problem actually. No I am not piping anything, just ran the app in console. More precisely it's xterm256-color emulation.

Sorry, close the ticket, it's really console issue.