Forum: Ruby Re: Simultaneous text input/output in a command line game

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Gennady B. (Guest)
on 2006-02-12 08:17
(Received via mailing list)
Just from the tip of my head:

t = {
  while true
    sleep 5
    puts "What are you waiting for, dude? Enter something now: "
puts "Enter something: "
s = gets
puts "You entered: #{s.inspect}"

This topic is locked and can not be replied to.