Method: CDK::VIEWER#jumpToLine

Defined in:
lib/cdk/components/viewer.rb

#jumpToLineObject

This allows us to ‘jump’ to a given line in the file.



601
602
603
604
605
606
607
608
609
# File 'lib/cdk/components/viewer.rb', line 601

def jumpToLine
  newline = CDK::SCALE.new(@screen, CDK::CENTER, CDK::CENTER,
      '<C>Jump To Line', '</5>Line :', Ncurses::A_BOLD,
      @list_size.size + 1, @current_top + 1, 0, @max_top_line + 1,
      1, 10, true, true)
  line = newline.activate([])
  newline.destroy
  return line - 1
end