Method: Chromate::Color#escape

Defined in:
lib/chromate/color.rb

#escapeString

Escape as an SGR escape sequence.

Returns:

  • an escape sequence of the form “e[1;2;3;…m”



296
297
298
299
300
301
302
303
# File 'lib/chromate/color.rb', line 296

def escape
  case @escape
  when :fg
    to_fg
  when :bg
    to_bg
  end
end