Method: Blufin::Terminal.any_key_to_continue
- Defined in:
- lib/core/terminal.rb
.any_key_to_continue(text = nil, preceding_blank_line = true) ⇒ Object
Deprecated.
Gives a prompt where ANY KEY will continue executing the script.
539 540 541 542 543 544 545 546 547 |
# File 'lib/core/terminal.rb', line 539 def self.any_key_to_continue(text = nil, preceding_blank_line = true) STDOUT.flush puts if preceding_blank_line text = 'Press any key to continue' if text.nil? print " \x1B[38;5;240m#{text}\x1B[0m => " STDIN.gets puts nil end |