Sha256: 75ea30081056091960f11d8a70cb886728ae4e0e671d8f13ad823c71e39f694a

Contents?: true

Size: 362 Bytes

Versions: 15

Compression:

Stored size: 362 Bytes

Contents

require 'rib'
require 'readline'

module Rib::Readline
  include Rib::Plugin
  Shell.use(self)

  # --------------- Rib API ---------------

  def before_loop
    return super if Readline.disabled?
    config[:history] = ::Readline::HISTORY
    super
  end

  def get_input
    return super if Readline.disabled?
    ::Readline.readline(prompt, true)
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
rib-1.0.5 lib/rib/core/readline.rb
rib-1.0.4 lib/rib/core/readline.rb
rib-1.0.3 lib/rib/core/readline.rb
rib-1.0.2 lib/rib/core/readline.rb
rib-1.0.1 lib/rib/core/readline.rb
rib-1.0.0 lib/rib/core/readline.rb
rib-0.9.9 lib/rib/core/readline.rb
rib-0.9.5 lib/rib/core/readline.rb
rib-0.9.5.pre.1 lib/rib/core/readline.rb
rib-0.9.5.pre.0 lib/rib/core/readline.rb
rib-0.9.4 lib/rib/core/readline.rb
rib-0.9.3 lib/rib/core/readline.rb
rib-0.9.2 lib/rib/core/readline.rb
rib-0.9.1 lib/rib/core/readline.rb
rib-0.9.0 lib/rib/core/readline.rb