Method: App::Terminal.any_key_to_continue
- Defined in:
- lib/core/terminal.rb
.any_key_to_continue(text = "\n\x1B[90mPress any key to continue\x1B[0m => ") ⇒ Object
Gives a prompt where ANY KEY will continue executing the script.
293 294 295 296 297 298 299 |
# File 'lib/core/terminal.rb', line 293 def self.any_key_to_continue(text = "\n\x1B[90mPress any key to continue\x1B[0m => ") STDOUT.flush print "#{text}" STDIN.gets puts nil end |