# File lib/net/ssh/prompt.rb, line 27 def prompt(prompt, echo=true) $stdout.print(prompt) $stdout.flush set_echo(false) unless echo $stdin.gets.chomp ensure if !echo set_echo(true) $stdout.puts end end