Module: Bond::Rawline

Defined in:
lib/bond/rawline.rb

Overview

A readline plugin for use with Rawline. This plugin should be used in conjunction with a Rawline shell.

Instance Method Summary collapse

Instance Method Details

#line_bufferObject



12
13
14
# File 'lib/bond/rawline.rb', line 12

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

#setup(agent) ⇒ Object



5
6
7
8
9
10
# File 'lib/bond/rawline.rb', line 5

def setup(agent)
  require 'rawline'
  ::Rawline.completion_append_character = nil
  ::Rawline.basic_word_break_characters= " \t\n\"\\'`><;|&{(" 
  ::Rawline.completion_proc = agent
end