lib/vscal/calendar_printer.rb
# returns an ANSI colored version of the given string
returns an ANSI colored version of the given string
returns an ANSI colored version of the given string
def colorize_string(str, color)
      fg_colors = { red: 31, green: 32, yellow: 33, blue: 34 }
      "\033[#{fg_colors[color]}m#{str}\033[0m"
    end
def colorize_string ( str , color ) fg_colors = { red : 31 , green : 32 , yellow : 33 , blue : 34 } "\033[#{fg_colors[color]}m#{str}\033[0m" end
returns an ANSI colored version of the given string
returns an ANSI colored version of the given string
# not a complete list of colors, but currently only need these 4
str
color