lib/kittikrb/cursor.rb
# Build control sequence for each cell in data and write it to the buffer.
Build control sequence for each cell in data and write it to the buffer.
Build control sequence for each cell in data and write it to the buffer .
def write(data)
        data.chars.each do |char|
          if cursor_in_bounding_box?
            options = {x: @x, y: @y,
                       background: @background,
                       foreground: @foreground,
                       display: @display}
            @buffer[get_pointer_from_xy] = self.class.wrap char, options
          end
          @x += 1
        end
        self
      end
def write ( data ) data . chars . each do | char | if cursor_in_bounding_box? options = { x : @x , y : @y , background : @background , foreground : @foreground , display : @display } @buffer [ get_pointer_from_xy ] = self . class . wrap char , options end @x += 1 end self end
Build control sequence for each cell in data and write it to the buffer.
Build control sequence for each cell in data and write it to the buffer .
data
<not_specific>