Fix the arrow keys in the Ubuntu Perl debugger
Posted 02-01-2010 at 12:14 PM by drask
This is just a quick note to myself. I spend a lot of time in the perl debugger (perl -d -e 1) and CPAN (perl -MCPAN -e shell) in Ubuntu and hate the way that when I get to the perl shell my keyboard cursor keys stop doing useful things like scrolling through my history and start producing garbage like "^[[A", "^[[B" "^[[C" and "^[[D" (up arrow, down arrow, right arrow and left arrow respectively).
I have fixed this several times on other boxes, but right now I'm setting up a new box and just spent about 2 hours searching the internet and scrolling through the package manager trying to remember how to make it work.
The answer, for the next time I forget, is to install either the libterm-readline-gnu-perl package or the libterm-readline-perl-perl package. Both seem to work.
I have fixed this several times on other boxes, but right now I'm setting up a new box and just spent about 2 hours searching the internet and scrolling through the package manager trying to remember how to make it work.
The answer, for the next time I forget, is to install either the libterm-readline-gnu-perl package or the libterm-readline-perl-perl package. Both seem to work.
Total Comments 0