lib/kittikrb/cursor.rb
# Build difference between current buffer and rendered buffer and write
# it to TTY. Difference contains new control codes only, optimizing
# the rendering performance.
Build difference between current buffer and rendered buffer and write
it to TTY. Difference contains new control codes only, optimizing
the rendering performance.
Build difference between current buffer and rendered buffer and write it to TTY . Difference contains new control codes only optimizing the rendering performance .
def flush
        $stdout.write(@buffer.select { |c| !@rendered_buffer.include?(c) }.join)
        update_rendered_buffer!
        self
      end
def flush $stdout . write ( @buffer . select { | c | ! @rendered_buffer . include? ( c ) } . join ) update_rendered_buffer! self end
Build difference between current buffer and rendered buffer and write
it to TTY.
Build difference between current buffer and rendered buffer and write it to TTY .