Using Ruby 1.9.2
Using latest AnsiSys gem
Tried to run the example code right from the rDoc main page for AnsiSys and received this error:
[brendan@spark ~]$ ruby ansi.rb
/usr/local/rvm/gems/ruby-1.9.2-head/gems/ansi-sys-0.8.3/lib/ansisys.rb:35:in `kcode': uninitialized constant
AnsiSys::Guess::NKF (NameError)
from /usr/local/rvm/gems/ruby-1.9.2-head/gems/ansi-sys-0.8.3/lib/ansisys.rb:617:in `render'
from ansi.rb:4:in `<main>'
Here is the contents of "ansi.rb":
require 'ansisys'
terminal = AnsiSys::Terminal.new
terminal.echo("Hello \e[32mWorld\e[m")
terminal.render #=> HTML fragment
|