- Project Status: On Hold
- Version: 0.3.1
RawLine is a 100% Ruby alternative to the ReadLine library, providing some of its most popular features such as:
- Basic line editing operations
- Word completion
- History Management
- Custom key/key sequences bindings
Installation
The simplest method to install RawLine is to install the gem:
1gem install rawlineUsage
Editor initialization:
Key binding:
Setup word completion
Read input:
1editor.read("=> ", true)
Replacing Readline
Simply include the RawLine (or Rawline) module:
1include Rawline
…and you’ll get:
but also:
1Rawline.editor # RawLine::Editor
…which opens a world of endless possibilities! ;-)
