Dennis Newbold <dennisn / pe.net> writes:

:situation.  If I were using the Unix
:or Linux version of Ruby, I could do an ioctl against stdin to set its
:properties to include "noecho".
:Don't recall the details, but a few minutes reading through a few man
:pages should clear it up.
:Unfortunately, I'm on Windows NT, so that probably is not an option.

  require 'termios'
  include Termios
  
  oldt = getattr($stdin)
  newt = oldt.dup
  newt.c_lflag &= ~ECHO
  setattr($stdin, TCSANOW, newt)
  print "noecho> "
  a = $stdin.gets
  setattr($stdin, TCSANOW, oldt)
  print "\n"
  p a
  
Ruby for cygwin works fine.

-- 
eban