module Degica::ANSI

Constants

COLORS

Public Class Methods

clear_screen() click to toggle source
# File lib/degica/ansi.rb, line 11
def clear_screen
  puts "\x1b[2J"
end
highlight(word, color) click to toggle source
# File lib/degica/ansi.rb, line 15
def highlight(word, color)
  COLORS[color] + word + COLORS[:none]
end