Term::ReadLine::EditLine - Term::ReadLine style wrapper for Term::EditLine
use Term::ReadLine; my $t = Term::ReadLine->new('program name'); while (defined($_ = $t->readline('prompt> '))) { ... $t->addhistory($_) if /\S/; }
Term::ReadLine::EditLine provides Term::ReadLine interface using Term::EditLine.
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.
You can use following methods in Term::ReadLine interface.
Additionally, you can use $t->editline() method to access Term::EditLine instance.
$t->editline()
Tokuhiro Matsuno <tokuhirom AAJKLFJEF@ GMAIL COM>
This module provides interface for Term::ReadLine, based on Term::EditLine.
Copyright (C) Tokuhiro Matsuno
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Term::ReadLine::EditLine, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Term::ReadLine::EditLine
CPAN shell
perl -MCPAN -e shell install Term::ReadLine::EditLine
For more information on module installation, please visit the detailed CPAN module installation guide.