The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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.

ENVIRONMENT

The Term::ReadLine interface module uses the PERL_RL variable to decide which module to load; so if you want to use this module for all your perl applications, try something like:

    export PERL_RL=EditLine

AUTHOR

Tokuhiro Matsuno <tokuhirom AAJKLFJEF@ GMAIL COM>

SEE ALSO

This module provides interface for Term::ReadLine, based on Term::EditLine.

LICENSE

Copyright (C) Tokuhiro Matsuno

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.