Method: Termular::UI#show_exception

Defined in:
lib/termular/ui.rb

#show_exception(msg) ⇒ Object



129
130
131
132
133
134
135
136
137
138
139
140
# File 'lib/termular/ui.rb', line 129

def show_exception(msg)
  Console.buffered_print do |s|
    s <<  Console.move(0, Console.rows - 1) <<
          Console.color(:bright, :white, :red) <<
          msg <<
          Console.reset
  end
  # this writes over where the graph goes, so invalidate it
  # however if we invalidate it now, it gets immediately dismissed, so set
  # a special flag
  @invalidate_next = true
end