# File lib/mcollective/util.rb, line 545 def self.get_hidden_input_on_unix() unless $stdin.tty? raise 'Could not hook to stdin to hide input. If using SSH, try using -t flag while connecting to server.' end unless system 'stty -echo -icanon' raise 'Could not hide input using stty command.' end input = $stdin.gets ensure unless system 'stty echo icanon' raise 'Could not enable echoing of input. Try executing `stty echo icanon` to debug.' end input end