node-keypress

Make any Node ReadableStream emit "keypress" events

Description

Previous to Node v0.8.x, there was an undocumented "keypress" event that process.stdin would emit when it was a TTY. Some people discovered this hidden gem, and started using it in their own code.

In Node v0.8.x (and above), this "keypress" event does not get emitted by default, but rather only when it is being used in conjunction with the readline (or by extension, the repl) module.

This module is the exact logic from the node pre-v0.8.x releases ripped out into its own module.

Bonus: Now with mouse support!

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://github.com/TooTallNate/keypress


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install node-keypress