Class: Amun::Windows::TextRenderer

Inherits:
Base show all
Defined in:
lib/amun/windows/text_renderer.rb

Overview

this class renders the buffer in a curses window makes sure the current character under point is highlighted highlight the space between point and mark and make sure to color text and other stuff consider it the rendering engine of the buffer

Instance Attribute Summary

Attributes inherited from Base

#size

Attributes inherited from Object

#events

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods inherited from Object

#initialize

Constructor Details

This class inherits a constructor from Amun::Windows::Base

Instance Method Details

#render(buffer) ⇒ Object



11
12
13
14
15
16
# File 'lib/amun/windows/text_renderer.rb', line 11

def render(buffer)
  curses_window.erase
  curses_window.scrollok(true)
  render_text(buffer)
  curses_window.refresh
end