Sha256: 7327bb1298f5c848ccf3b667712db0ec025cef3acf85424a02f32adf2df1ca9e

Contents?: true

Size: 494 Bytes

Versions: 10

Compression:

Stored size: 494 Bytes

Contents

# A pure ruby readline which requires {rawline}[http://github.com/h3rald/rawline].
class Bond::Rawline < Bond::Readline
  def self.setup(agent)
    require 'rawline'
    Rawline.completion_append_character = nil
    Rawline.basic_word_break_characters= " \t\n\"\\'`><;|&{("
    Rawline.completion_proc = agent
  rescue LoadError
    abort "Bond Error: rawline gem is required for this readline plugin -> gem install rawline"
  end

  def self.line_buffer
    Rawline.editor.line.text
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
bond-0.5.1 lib/bond/readlines/rawline.rb
bond-0.5.1-java lib/bond/readlines/rawline.rb
bond-0.5.0 lib/bond/readlines/rawline.rb
bond-0.5.0-java lib/bond/readlines/rawline.rb
bond-0.4.3 lib/bond/readlines/rawline.rb
bond-0.4.3-java lib/bond/readlines/rawline.rb
bond-0.4.2 lib/bond/readlines/rawline.rb
bond-0.4.2-java lib/bond/readlines/rawline.rb
bond-0.4.1 lib/bond/readlines/rawline.rb
bond-0.4.0 lib/bond/readlines/rawline.rb