Help answer threads with 0 replies.
Go Back > Blogs > drask
User Name


Rate this Entry

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.
Posted in Uncategorized
Views 3387 Comments 0
« Prev     Main     Next »
Total Comments 0




All times are GMT -5. The time now is 10:54 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration