Created
February 24, 2009 16:05
-
-
Save codeprimate/69643 to your computer and use it in GitHub Desktop.
Disable CLI echo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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