Class: Chamomile::NullRenderer

Inherits:
Object
  • Object
show all
Defined in:
lib/chamomile/program.rb

Overview

No-op renderer for headless/testing mode.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNullRenderer

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

#heightObject (readonly)

Returns the value of attribute height.



485
486
487
# File 'lib/chamomile/program.rb', line 485

def height
  @height
end

#widthObject (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

#clearObject



505
# File 'lib/chamomile/program.rb', line 505

def clear; end

#enter_alt_screenObject



492
# File 'lib/chamomile/program.rb', line 492

def enter_alt_screen; end

#enter_inline_modeObject



494
# File 'lib/chamomile/program.rb', line 494

def enter_inline_mode; end

#exit_alt_screenObject



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_cursorObject



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_cursorObject



496
# File 'lib/chamomile/program.rb', line 496

def show_cursor; end

#stopObject



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