CC: | rocky [...] cpan.org |
Subject: | PATCH - Tolerance for more OO ReadLine implementations |
Between version 1.38 and 1.39, Term::ReadLine::Perl5 moved to a more OO version of Readline. Perl has a (mis)feature where you can bless any type, so people do. In the case of Term::Readline what's blessed is an array where index 0 is input and 1 is output. This makes it difficult/ugly/unconventional to try to turn ReadLine into a decent OO interface.
Rocky B, the author of Term::ReadLine::Perl5, worked up a patch to Term::ShellUI so that it doesn't assume Term::ReadLine is an array. The patch is here and I'd like to propose a version 0.93 based upon that patch: https://github.com/rocky/Term-ShellUI/commit/b5677a8e5fa6f2d4f53386e48c0c1ef7c4ba029c
As info, the original bug report came from a user of kpcli, which I author: http://sourceforge.net/p/kpcli/bugs/18/
--
Lester