Method: MenuWindow#draw_arrow

Defined in:
lib/menu_window.rb

#draw_arrowObject



223
224
225
226
227
228
229
230
231
232
233
# File 'lib/menu_window.rb', line 223

def draw_arrow
  # calculate where arrow should be drawn
  LOGGER.debug("Drawing arrow. Current index: #{@current_index}, Page index: #{@page_index}, Height: #{@height}")
  y = (@current_index - @page_index * @height) 
  x = 0
  LOGGER.debug "Drawing arrow at y #{y}"
  @window.setpos(y, x)
  @window.addstr("->")
  # move the cursor 
  #@window.setpos(0,0)
end