module Net::SSH::PromptMethods::Highline
Defines the prompt method to use if the Highline library is installed.
Public Instance Methods
prompt(prompt, echo=true)
click to toggle source
Uses Highline#ask to present a prompt and accept input. If
echo
is false
, the characters entered by the user
will not be echoed to the screen.
# File lib/net/ssh/prompt.rb, line 16 def prompt(prompt, echo=true) @highline ||= ::HighLine.new @highline.ask(prompt + " ") { |q| q.echo = echo } end