class Rouge::Formatters::Terminal256::EscapeSequence

def style_string

def style_string
  @style_string ||= begin
    attrs = []
    attrs << ['38', '5', fg.to_s] if fg
    attrs << ['48', '5', bg.to_s] if bg
    attrs << '01' if style[:bold]
    attrs << '04' if style[:italic] # underline, but hey, whatevs
    escape(attrs)
  end
end