Module: Say

Defined in:
lib/pangea/say/init.rb

Class Method Summary collapse

Class Method Details

.terminal(msg) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/pangea/say/init.rb', line 6

def terminal(msg)
  spec = {
    width: 80,
    style: {
      fg: :yellow,
      bg: :blue,
      border: { fg: :green, bg: :black }
    },
    align: :right,
    border: :thick
    # padding: 0,
    # height: 1
  }

  box = TTY::Box.frame(**spec)

  puts box + "\n"
  puts msg.strip
  puts "\n" + box
end