# File utils.rb, line 80 def ansiCode( *attributes ) return '' unless /(?:vt10[03]|xterm(?:-color)?|linux)/i =~ ENV['TERM'] attr = attributes.collect {|a| AnsiAttributes[a] ? AnsiAttributes[a] : nil}.compact.join(';') if attr.empty? return '' else return "\e[%sm" % attr end end