在Perl调试器和CPAN客户端中,上下箭头不起作用 [英] Arrow up and down does not work any more in Perl debugger and CPAN client
问题描述
我曾经在Mac OS X(v 10.7.5)上使用Active Perl,然后切换到通过mac端口(v 5.12.4)提供的Perl。
现在,当我运行CPAN客户端或Perl调试器时,我无法使用ArrowUp和ArrowDown访问历史记录,提示符下显示的是 ^ [[A
和 ^ [[B
$。
至少在调试器上,历史可以工作,我可以访问过去的命令!
默认情况下,只有 Term :: ReadLine
处理程序你得到的是
Term :: ReadLine :: Perl
这是非常简单的,不了解像箭头键的东西。你可能要安装 Term :: ReadLine :: Gnu
。
I used to use Active Perl on my Mac OS X (v 10.7.5) and then I switched to the one provided via mac ports (v 5.12.4).
Now when I run the CPAN client or the perl debugger, I cannot access the history using ArrowUp and ArrowDown, what is shown at the prompt is ^[[A
and ^[[B
respectively.
At least on the debugger the history works, I can access past commands via !num.
By default the only Term::ReadLine
handler you get is Term::ReadLine::Perl
which is quite simple and doesn't understand things like arrow keys. You probably want to install Term::ReadLine::Gnu
.
这篇关于在Perl调试器和CPAN客户端中,上下箭头不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!