Method: Twterm::Image.cursor

Defined in:
lib/twterm/image.rb

.cursor(height, current) ⇒ Object



69
70
71
72
# File 'lib/twterm/image.rb', line 69

def self.cursor(height, current)
  color = current ? [:black, :magenta] : [:black]
  VerticalSequentialImage.new([whitespace] * height).color(*color)
end