From: Bill Kelly Date: 2004-09-10T05:42:40+09:00 Subject: Re: Listening for Keypress while Working Hi, From: "James Edward Gray II" > On Sep 9, 2004, at 2:23 PM, James Edward Gray II wrote: > > > What's the best way to go about this, select() over STDIN in my > > processing loop? > > Hmm, I don't appear to be able to select() over STDIN. Now I'm really > in need of a good idea... Which operating system? On win32... I haven't tried it... they seem to have provided _kbhit() in ... Apparently implemented in terms of win32 PeekConsoleInput()... I dunno if it really works...? :) But you might be able to try calling it using ruby/dl... On *nix, I think if you put the tty into raw mode you should be able to select on stdin and detect unbuffered keypresses. Sorry I can't be of more help . . Regards, Bill