On this page
module Reline
Constants
- CursorPos
- DEFAULT_DIALOG_CONTEXT
- DEFAULT_DIALOG_PROC_AUTOCOMPLETE
- DialogRenderInfo
- FILENAME_COMPLETION_PROC
- HISTORY
- IOGate
- Key
- USERNAME_COMPLETION_PROC
- VERSION
Public Class Methods
# File lib/reline.rb, line 557
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
# File lib/reline.rb, line 553
def self.encoding_system_needs
self.core.encoding
end
# File lib/reline.rb, line 534
def self.insert_text(*args, &block)
line_editor.insert_text(*args, &block)
self
end
# File lib/reline.rb, line 577
def self.line_editor
core.line_editor
end
# File lib/reline.rb, line 573
def self.ungetc(c)
Reline::IOGate.ungetc(c)
end
Ruby Core © 1993–2022 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.