In Files

  • reline/line_editor.rb

Reline::LineEditor

Attributes

auto_indent_proc[RW]
byte_pointer[R]
completion_append_character[RW]
completion_proc[RW]
confirm_multiline_termination_proc[RW]
dig_perfect_match_proc[RW]
line[R]

TODO: undo

output[W]
output_modifier_proc[RW]
pre_input_hook[RW]
prompt_proc[RW]

Public Class Methods

new(config, encoding) click to toggle source
 
               # File reline/line_editor.rb, line 55
def initialize(config, encoding)
  @config = config
  @completion_append_character = ''
  reset_variables(encoding: encoding)
end
            

Public Instance Methods

set_pasting_state(in_pasting) click to toggle source
 
               # File reline/line_editor.rb, line 61
def set_pasting_state(in_pasting)
  @in_pasting = in_pasting
end
            
simplified_rendering?() click to toggle source
 
               # File reline/line_editor.rb, line 65
def simplified_rendering?
  if finished?
    false
  elsif @just_cursor_moving and not @rerender_all
    true
  else
    not @rerender_all and not finished? and @in_pasting
  end
end