class Tkn2::ANSIReader::Screen

Constants

MAP

Public Class Methods

new(window) click to toggle source
# File lib/tkn2/ansi_reader.rb, line 33
def initialize(window)
  @window = window
end

Public Instance Methods

char(c) click to toggle source
# File lib/tkn2/ansi_reader.rb, line 48
def char(c)
  @window.addstr c
end
code(c) click to toggle source
# File lib/tkn2/ansi_reader.rb, line 37
def code(c)
  c.sub(/\A\[/, '').split(';').each do |n|
    @window.attrset(MAP[n]) if MAP[n]
  end
end