Module: CemAcpt::Utils::Terminal

Defined in:
lib/cem_acpt/utils/terminal.rb

Overview

Terminal-related utilities

Class Method Summary collapse

Class Method Details

.keep_terminal_aliveObject



7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/cem_acpt/utils/terminal.rb', line 7

def self.keep_terminal_alive
  Thread.new do
    loop do
      $stdout.print(".\r")
      sleep(1)
      $stdout.print("..\r")
      sleep(1)
      $stdout.print("...\r")
      sleep(1)
      $stdout.print("   \r")
      sleep(1)
    end
  end
end