lib/html/source/javascripts/websocket.coffee in flammarion-0.0.9 vs lib/html/source/javascripts/websocket.coffee in flammarion-0.0.10
- old
+ new
@@ -64,10 +64,10 @@
escape_icons: false
$.extend(options, input_options)
return text if options.raw
text = "#{text}"
text = ansi_up.escape_for_html(text) if options.escape_html
- text = ansi_up.ansi_to_html(text) if options.colorize
+ text = ansi_up.ansi_to_html(text, {use_classes:true}) if options.colorize
text = text.replace(/:[\w-]+:/g, (match) ->
"<i class='fa fa-#{match[1..-2]}'></i>") if options.escape_icons
return text
add: (object, target, data) ->