module Dirby::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/dirby/colorize.rb, line 201 def self.escape(key) COLORS.key?(key) && "\033[#{COLORS[key]}m" end