Skip to content

Instantly share code, notes, and snippets.

@codeprimate
Created February 24, 2009 16:05
Show Gist options
  • Save codeprimate/69643 to your computer and use it in GitHub Desktop.
Save codeprimate/69643 to your computer and use it in GitHub Desktop.
Disable CLI echo
def prompt_password
puts "Ask for Input: "
system "stty -echo"
from_user = $stdin.gets.chomp
system "stty echo"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment