From: "Damián M. González" Date: 2013-04-05T21:50:09+09:00 Subject: Getting the input of an user with gets() before he hits Enter Hi guys. Do you know if there's any way to get what the user is typing with gets(), I mean I want to know what is he typing before he hits Enter, so for example I can do some action if the input is "", and just wait for he to finish the sentence if not. Can it be done with a kind of thread or something? Do you think that consulting the actual value of $stdin with a thread running in parallel of the other thread runnig gets() can be done? -- Posted via http://www.ruby-forum.com/.