class String
  # Colors
  def black; "\e[30m#{self}\e[0m"; end
  def red; "\e[31m#{self}\e[0m"; end
  def green; "\e[32m#{self}\e[0m"; end
  def brown; "\e[33m#{self}\e[0m"; end
  def blue; "\e[34m#{self}\e[0m"; end
  def magenta; "\e[35m#{self}\e[0m"; end
  def cyan; "\e[36m#{self}\e[0m"; end
  def gray; "\e[37m#{self}\e[0m"; end
  # Backgrounds
  def bg_black; "\e[40m#{self}\e[0m"; end
  def bg_red; "\e[41m#{self}\e[0m"; end
  def bg_green; "\e[42m#{self}\e[0m"; end
  def bg_brown; "\e[43m#{self}\e[0m"; end
  def bg_blue; "\e[44m#{self}\e[0m"; end
  def bg_magenta; "\e[45m#{self}\e[0m"; end
  def bg_cyan; "\e[46m#{self}\e[0m"; end
  def bg_gray; "\e[47m#{self}\e[0m"; end
end
