Method: RubyCurses::TextView#init_vars

Defined in:
lib/rbcurse/core/widgets/rtextview.rb

#init_varsObject

:nodoc:



69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# File 'lib/rbcurse/core/widgets/rtextview.rb', line 69

def init_vars #:nodoc:
  @curpos = @pcol = @toprow = @current_index = 0
  @repaint_all=true 
  @repaint_required=true 
  @widget_scrolled = true
  ## 2010-02-10 20:20 RFED16 taking care if no border requested
  @row_offset = @col_offset = 0 if @suppress_borders == true
  # added 2010-02-11 15:11 RFED16 so we don't need a form.
  $error_message_row ||= 23
  $error_message_col ||= 1
  # currently i scroll right only if  current line is longer than display width, i should use 
  # longest line on screen.
  @longest_line = 0 # the longest line printed on this page, used to determine if scrolling shd work
  @internal_width = 2
  @internal_width = 0 if @suppress_borders # NOTE bordertitle says 1

  @search_found_ix = nil # so old searches don't get highlighted
end