Method: MenuWindow#erase_arrow

Defined in:
lib/menu_window.rb

#erase_arrowObject



261
262
263
264
265
266
267
268
269
270
271
272
273
# File 'lib/menu_window.rb', line 261

def erase_arrow
  # calculate where arrow should be drawn
  y = (@current_index - @page_index * @height) 
  x = 0
  LOGGER.debug "Erasing arrow at y #{y}"
  @window.setpos(y, x)
  @window << "  "
  return
  @window.delch
  @window.delch
  @window.delch
  @window.addstr
end