def ansi_colorize(text)
text = text.gsub(%r{<b>(.*?)</b>}, "#{BOLD}\\1#{DEFAULT_TERMINAL_COLOR}")
text.gsub!(%r{<dgray>(.*?)</dgray>}, "#{BOLD}#{DGRAY}\\1#{DEFAULT_TERMINAL_COLOR}")
text.gsub!(%r{<red>(.*?)</red>}, "#{BOLD}#{RED}\\1#{DEFAULT_TERMINAL_COLOR}")
text.gsub!(%r{<orange>(.*?)</orange>}, "#{BOLD}#{ORANGE}\\1#{DEFAULT_TERMINAL_COLOR}")
text.gsub!(%r{<green>(.*?)</green>}, "#{BOLD}#{GREEN}\\1#{DEFAULT_TERMINAL_COLOR}")
text.gsub!(%r{<yellow>(.*?)</yellow>}, "#{BOLD}#{YELLOW}\\1#{DEFAULT_TERMINAL_COLOR}")
text.gsub!(%r{<banner>(.*?)</banner>}, "#{BOLD}#{BLUE_BG}#{YELLOW}\\1#{DEFAULT_TERMINAL_COLOR}")
return text
end