In Files

  • ruby-3.1.2/lib/reline.rb
  • ruby-3.1.2/lib/reline/ansi.rb
  • ruby-3.1.2/lib/reline/config.rb
  • ruby-3.1.2/lib/reline/general_io.rb
  • ruby-3.1.2/lib/reline/history.rb
  • ruby-3.1.2/lib/reline/key_actor.rb
  • ruby-3.1.2/lib/reline/key_actor/base.rb
  • ruby-3.1.2/lib/reline/key_actor/emacs.rb
  • ruby-3.1.2/lib/reline/key_actor/vi_command.rb
  • ruby-3.1.2/lib/reline/key_actor/vi_insert.rb
  • ruby-3.1.2/lib/reline/key_stroke.rb
  • ruby-3.1.2/lib/reline/kill_ring.rb
  • ruby-3.1.2/lib/reline/line_editor.rb
  • ruby-3.1.2/lib/reline/terminfo.rb
  • ruby-3.1.2/lib/reline/unicode.rb
  • ruby-3.1.2/lib/reline/unicode/east_asian_width.rb
  • ruby-3.1.2/lib/reline/version.rb
  • ruby-3.1.2/lib/reline/windows.rb

Files

Class/Module Index [+]

Quicksearch

Reline

Public Class Methods

core() click to toggle source
 
               # File ruby-3.1.2/lib/reline.rb, line 540
def self.core
  @core ||= Core.new { |core|
    core.config = Reline::Config.new
    core.key_stroke = Reline::KeyStroke.new(core.config)
    core.line_editor = Reline::LineEditor.new(core.config, Reline::IOGate.encoding)

    core.basic_word_break_characters = " \t\n`><=;|&{("
    core.completer_word_break_characters = " \t\n`><=;|&{("
    core.basic_quote_characters = '"\''
    core.completer_quote_characters = '"\''
    core.filename_quote_characters = ""
    core.special_prefixes = ""
    core.add_dialog_proc(:autocomplete, Reline::DEFAULT_DIALOG_PROC_AUTOCOMPLETE, Reline::DEFAULT_DIALOG_CONTEXT)
  }
end
            
encoding_system_needs() click to toggle source
 
               # File ruby-3.1.2/lib/reline.rb, line 536
def self.encoding_system_needs
  self.core.encoding
end
            
insert_text(*args, &block) click to toggle source
 
               # File ruby-3.1.2/lib/reline.rb, line 517
def self.insert_text(*args, &block)
  line_editor.insert_text(*args, &block)
  self
end
            
line_editor() click to toggle source
 
               # File ruby-3.1.2/lib/reline.rb, line 560
def self.line_editor
  core.line_editor
end
            
ungetc(c) click to toggle source
 
               # File ruby-3.1.2/lib/reline.rb, line 556
def self.ungetc(c)
  Reline::IOGate.ungetc(c)
end