Yes you can;
var oldEmit = process.stdin.emit;
process.stdin.emit = function() { console.log(arguments);
oldEmit.apply(process.stdin, arguments); };
example output;
{ '0': 'keypress',
'1': '\u0003',
'2':
{ name: 'c',
ctrl: true,
meta: false,
shift: false,
sequence: '\u0003' } }
On Monday, September 24, 2012 12:47:23 PM UTC-4, Paul Vencill wrote:
>
> Seems like there should be, but I sure can't find it. In this instance,
> I'm specifically looking for what events stdin provides, which isn't in the
> docs, but I'd be curious to know if there's a generic way to do it too.
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en