I want to ask users to type in a password, but i dont want the chars to appear on screen as they type.
How do I do this in Ruby?
If you're on a system with stty:
stty
`stty -echo` print "Password: " pw = gets.chomp `stty echo` puts ""