From: Eero Saynatkari Date: 2006-09-20T13:33:45+09:00 Subject: Re: Single character input without pressing 'Enter' Nguyen Huu Bach wrote: > This is a simple way to achieve that. Maybe there are others > > def read_char # Save previous state old = `stty -g` > system "stty raw -echo" > STDIN.getc > ensure system "stty #{old}" > end > > good luck Might be better to use Termios or Curses, though. -- Posted via http://www.ruby-forum.com/.