Class: Chamomile::NullRenderer
- Inherits:
-
Object
- Object
- Chamomile::NullRenderer
- Defined in:
- lib/chamomile/program.rb
Overview
No-op renderer for headless/testing mode.
Instance Attribute Summary collapse
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
- #apply_cursor_shape(_shape) ⇒ Object
- #clear ⇒ Object
- #enter_alt_screen ⇒ Object
- #enter_inline_mode ⇒ Object
- #exit_alt_screen ⇒ Object
- #force_render(_view_string) ⇒ Object
- #hide_cursor ⇒ Object
-
#initialize ⇒ NullRenderer
constructor
A new instance of NullRenderer.
- #move_cursor(_row, _col) ⇒ Object
- #println(_str) ⇒ Object
- #println_above(_str) ⇒ Object
- #render(_view_string) ⇒ Object
- #resize(w, h) ⇒ Object
- #show_cursor ⇒ Object
- #stop ⇒ Object
- #write_window_title(_title) ⇒ Object
Constructor Details
#initialize ⇒ NullRenderer
Returns a new instance of NullRenderer.
487 488 489 490 |
# File 'lib/chamomile/program.rb', line 487 def initialize @width = 80 @height = 24 end |
Instance Attribute Details
#height ⇒ Object (readonly)
Returns the value of attribute height.
485 486 487 |
# File 'lib/chamomile/program.rb', line 485 def height @height end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
485 486 487 |
# File 'lib/chamomile/program.rb', line 485 def width @width end |
Instance Method Details
#apply_cursor_shape(_shape) ⇒ Object
509 |
# File 'lib/chamomile/program.rb', line 509 def apply_cursor_shape(_shape); end |
#clear ⇒ Object
505 |
# File 'lib/chamomile/program.rb', line 505 def clear; end |
#enter_alt_screen ⇒ Object
492 |
# File 'lib/chamomile/program.rb', line 492 def enter_alt_screen; end |
#enter_inline_mode ⇒ Object
494 |
# File 'lib/chamomile/program.rb', line 494 def enter_inline_mode; end |
#exit_alt_screen ⇒ Object
493 |
# File 'lib/chamomile/program.rb', line 493 def exit_alt_screen; end |
#force_render(_view_string) ⇒ Object
504 |
# File 'lib/chamomile/program.rb', line 504 def force_render(_view_string); end |
#hide_cursor ⇒ Object
495 |
# File 'lib/chamomile/program.rb', line 495 def hide_cursor; end |
#move_cursor(_row, _col) ⇒ Object
508 |
# File 'lib/chamomile/program.rb', line 508 def move_cursor(_row, _col); end |
#println(_str) ⇒ Object
506 |
# File 'lib/chamomile/program.rb', line 506 def println(_str); end |
#println_above(_str) ⇒ Object
507 |
# File 'lib/chamomile/program.rb', line 507 def println_above(_str); end |
#render(_view_string) ⇒ Object
503 |
# File 'lib/chamomile/program.rb', line 503 def render(_view_string); end |
#resize(w, h) ⇒ Object
498 499 500 501 |
# File 'lib/chamomile/program.rb', line 498 def resize(w, h) @width = w @height = h end |
#show_cursor ⇒ Object
496 |
# File 'lib/chamomile/program.rb', line 496 def show_cursor; end |
#stop ⇒ Object
511 |
# File 'lib/chamomile/program.rb', line 511 def stop; end |
#write_window_title(_title) ⇒ Object
510 |
# File 'lib/chamomile/program.rb', line 510 def write_window_title(_title); end |