Sha256: 149eb16b8bed1dcf566d62d7739a310a305ce94c72d5f96e63fbd5f930673eac
Contents?: true
Size: 471 Bytes
Versions: 5
Compression:
Stored size: 471 Bytes
Contents
require 'rib' require 'readline' module Rib; module Readline extend 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 unless ::Readline::HISTORY.respond_to?(:last) def (::Readline::HISTORY).last self[-1] end end; end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
rib-1.6.1 | lib/rib/core/readline.rb |
rib-1.6.0 | lib/rib/core/readline.rb |
rib-1.5.4 | lib/rib/core/readline.rb |
rib-1.5.3 | lib/rib/core/readline.rb |
rib-1.5.2 | lib/rib/core/readline.rb |