Method: CLI::UI::Prompt.any_key
- Defined in:
- lib/cli/ui/prompt.rb
.any_key(prompt = 'Press any key to continue...') ⇒ Object
226 227 228 229 230 231 |
# File 'lib/cli/ui/prompt.rb', line 226 def any_key(prompt = 'Press any key to continue...') CLI::UI::StdoutRouter::Capture.in_alternate_screen do puts_question(prompt) read_char end end |