- 
		
Recent Posts
 Recent Comments
- James on Migrating big applications from Rails 2 to Rails 3
 - David on The Ruby C API – Basics
 - 各种MQ比较-老娘舅 on A quick message queue benchmark: ActiveMQ, RabbitMQ, HornetQ, QPID, Apollo…
 - Chris on A quick message queue benchmark: ActiveMQ, RabbitMQ, HornetQ, QPID, Apollo…
 - Andy on How to read one non-blocking key press in Ruby
 
Archives
Categories
Meta
Tag Archives: unix
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