From: Tallak Tveide Date: 2010-01-21T15:04:31+09:00 Subject: Re: capture output in real time Hi folks. After trying a lot of things, this worked for me on Linux: %x{stty -icanon -echo} key = STDIN.read(1) I found this at http://stackoverflow.com/questions/582200/setting-non-canonical-mode-on-stdin-with-ruby Instead of the %x{...} you could use Termios instead to reset the 'ICANON' flag: http://devver.net/blog/2009/07/a-command-line-prompt-with-timeout-and-countdown/ -- Posted via http://www.ruby-forum.com/.