On May 7, 2005, at 4:48 PM, Ryan Leavengood wrote: > require 'Win32API' > > @getch = Win32API.new("crtdll", "_getch", [], 'L') > > def ask_password(prompt) > print prompt > pass = '' > while ((c = @getch.call) != 13) > pass << c.chr > end > pass > end > > pass = ask_password("Please give me your password: ") > puts > puts "Got '#{pass}'" > __END__ Last question on this, I promise. Does Windows echo the carriage return (and possibly line feed), when character reading like this? James Edward Gray II