module Wirble::Colorize::Color

Terminal escape codes for colors.

Constants

COLORS

Public Class Methods

escape(key) click to toggle source

Return the escape code for a given color.

# File lib/wirble.rb, line 318
def self.escape(key)
  COLORS.key?(key) && "\033[#{COLORS[key]}m"
end