From: Xavier Noria Date: 2007-03-05T23:16:36+09:00 Subject: Re: mask gets_chomp ? On Mar 5, 2007, at 2:15 PM, Rebhan, Gilbert wrote: > i have a script that uses a password as input. > > The password is provided via gets_chomp > in the shell. > > Is there a way to mask the password with * > or do i have to write a gui for that ? Just in case, are you aware of HighLine's ask mehod? require 'rubygems' require 'highline/import' pass = ask("Password: ") {|q| q.echo = false} -- fxn