Codebase list node-keypress / fresh-snapshots/upstream
Import upstream version 0.2.1+git20170901.1.9f1cc0e Debian Janitor 1 year, 3 months ago
2 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
77 gem, and started using it in their own code.
88
99 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
1111 extension, the `repl`) module.
1212
1313 This module is the exact logic from the node `v0.8.x` releases ripped out into its
88 * Module exports.
99 */
1010
11 var exports = module.exports = keypress;
11 exports = module.exports = keypress;
1212
1313 /**
1414 * This module offers the internal "keypress" functionality from node-core's
2828 * process.stdin.pause();
2929 * }
3030 * });
31 * proces.stdin.resume();
31 * process.stdin.resume();
3232 * ```
3333 *
3434 * @param {Stream} stream