RawLine

A pure-ruby alternative to ReadLine

SemVerv0.3.2
LicenseMIT

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:

/bin/sh: chroma: not found

Usage ⇈

Editor initialization:

/bin/sh: chroma: not found

Key binding:

/bin/sh: chroma: not found

Setup word completion

/bin/sh: chroma: not found

Read input:

/bin/sh: chroma: not found

Replacing Readline ⇈

Simply include the RawLine (or Rawline) module:

/bin/sh: chroma: not found

…and you’ll get:

/bin/sh: chroma: not found

but also:

/bin/sh: chroma: not found

…which opens a world of endless possibilities! ;-)

Latest Updates ⇈