Roger Pack wrote:
> It would be quite convenient to have a getch method in Ruby.
> Any opposition to my suggesting its addition to core?
> -r

$ /usr/local/bin/ruby-1.9.3 -v -rio/console -e 'p STDIN.gets; p 
STDIN.noecho{|f|f.gets("!")}; p STDIN.getch'
ruby 1.9.3dev (2010-07-06 trunk 28554) [x86_64-linux]
hello
"hello\n"
"world!"
"\n"

--
Nobu Nakada
-- 
Posted via http://www.ruby-forum.com/.