|
[text/plain 1.5k]
Hi,
Thanks! I no longer get the error, but I am expecting
the string "0=off 1=some, 2=more, 3=tons" to be printed
if I type <TAB> twice. Is this another bug? Also, do you
have some more example scripts?
Erik
On Apr 27, 2007, at 8:15 AM, Scott Bronson via RT wrote:
>
> <URL: http://rt.cpan.org/Ticket/Display.html?id=26692 >
>
> I was calling an non-standard function without first ensuring it was
> implemented. I'll upload a fixed release soon.
>
> It's too bad that I can't support suggestions on Term::ReadLine::Perl.
> I hope they choose to add this capability. I've files a request:
> http://rt.cpan.org//Ticket/Display.html?id=26727
>
> Here's the patch that fixes this error:
>
>
> --- ShellUI.pm (revision 443)
> +++ ShellUI.pm (working copy)
> @@ -1232,9 +1232,11 @@
> my $self = shift;
> my $msg = shift;
>
> - my $OUT = $self->{OUT};
> - print $OUT $msg;
> - $self->{term}->rl_on_new_line();
> + if($self->{term}->can('rl_on_new_line')) {
> + my $OUT = $self->{OUT};
> + print $OUT $msg;
> + $self->{term}->rl_on_new_line();
> + }
> }
>
>
> @@ -1616,8 +1618,10 @@
> $str .= " ", print ", <" if $i != $#$tokens;
> $i += 1;
> }
> - print "\n$str\n";
> - $self->{term}->rl_on_new_line();
> + if($self->{term}->can('rl_on_new_line')) {
> + print "\n$str\n";
> + $self->{term}->rl_on_new_line();
> + }
> }
>
> my $str = $text;
>
>
> Marking resolved, please re-open if the new release doesn't work
> for you.
|