Method: RubyCurses::TextView#cursor_forward

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

#cursor_forwardObject

:nodoc:



395
396
397
398
399
400
401
402
403
404
405
406
407
408
# File 'lib/rbcurse/core/widgets/rtextview.rb', line 395

def cursor_forward #:nodoc:
  maxlen = @maxlen || @width-@internal_width
  repeatm { 
  if @curpos < @width and @curpos < maxlen-1 # else it will do out of box
    @curpos += 1
    addcol 1
  else
    @pcol += 1 if @pcol <= row_length
  end
  }
  set_form_col 
  #@repaint_required = true
  @repaint_footer_required = true # 2010-01-23 22:41 
end