Import upstream version 0.2.1+git20170901.1.9f1cc0e
Debian Janitor
1 year, 3 months ago
7 | 7 |
gem, and started using it in their own code.
|
8 | 8 |
|
9 | 9 |
Now in Node `v0.8.x`, this `"keypress"` event does not get emitted by default,
|
10 | |
but rather only when it is being used in conjuction with the `readline` (or by
|
|
10 |
but rather only when it is being used in conjunction with the `readline` (or by
|
11 | 11 |
extension, the `repl`) module.
|
12 | 12 |
|
13 | 13 |
This module is the exact logic from the node `v0.8.x` releases ripped out into its
|
8 | 8 |
* Module exports.
|
9 | 9 |
*/
|
10 | 10 |
|
11 | |
var exports = module.exports = keypress;
|
|
11 |
exports = module.exports = keypress;
|
12 | 12 |
|
13 | 13 |
/**
|
14 | 14 |
* This module offers the internal "keypress" functionality from node-core's
|
|
28 | 28 |
* process.stdin.pause();
|
29 | 29 |
* }
|
30 | 30 |
* });
|
31 | |
* proces.stdin.resume();
|
|
31 |
* process.stdin.resume();
|
32 | 32 |
* ```
|
33 | 33 |
*
|
34 | 34 |
* @param {Stream} stream
|