Tag Archives: stdin

How to read one non-blocking key press in Ruby

During the development of a simple command line game in Ruby, I wanted to check if the player has pressed a given key in a non-blocking and buffered way. That is: If no key was pressed, don’t wait for one … Continue reading

Howto, Ruby , , , , , , , , , , , , , , , , , , , , ,

How to pilot external processes’ stdin and stdout in real time using Ruby

I finally made it! Regarding my previous post about failing to pilot processes on Windows, I searched again and finally found a solution. [EDIT] I have bundled the solution I explain in this article in a nice gem that you … Continue reading

Howto, Ruby, Windows , , , , , , , , , , , , , ,

Failure at piloting external processes stdin and stdout using Ruby on Windows

I have always tried to be a polyglot programmer, and also poly-platform one. I have always cherished the idea my softwares could run on any OS. My main development environments for most of my Ruby projects are Windows (XP and … Continue reading

Ruby, Windows , , , , , , , , , , , , , , ,