NAME
Term::ReadLine::EditLine - Term::ReadLine style wrapper for
Term::EditLine
SYNOPSIS
use Term::ReadLine;
my $t = Term::ReadLine->new('program name');
while (defined($_ = $t->readline('prompt> '))) {
...
$t->addhistory($_) if /\S/;
}
DESCRIPTION
Term::ReadLine::EditLine provides Term::ReadLine interface using
Term::EditLine.
MOTIVATION
Term::ReadLine::Gnu is great, but it's hard to install on Mac OS X.
Because it has pre-installed libedit but it does not contain GNU
readline.
Term::ReadLine::EditLine is very easy to install on OSX.
INTERFACE
You can use following methods in Term::ReadLine interface.
Term::ReadLine->new($program_name[, IN, OUT])
$t->addhistory($history)
my $line = $t->readline()
$t->ReadLine()
$t->IN()
$t->OUT()
$t->findConsole()
$t->Attribs()
$t->Features()
Additionally, you can use "$t->editline()" method to access
Term::EditLine instance.