andrew <> wrote:
> Hi. I've been pouring over the debugger perldocs trying to figure out
> how to change keyboard bindings, so for example the 'left' and 'right'
> arrow keys let me move the cursor around the current line instead of
> spitting out things like '^[[C', and mapping the 'up' arrow key to
> cycle through the command history like it would at a command line
> prompt. Am I approaching this completely wrong? Any advice would be
> welcome. Thanks
From 'perldoc perldebug':
As shipped, the only command-line history supplied is a simplistic
one that checks for leading exclamation points. However, if you
install the Term::ReadKey and Term::ReadLine modules from CPAN,
you will have full editing capabilities much like GNU readline(3)
provides. Look for these in the modules/by-module/Term directory
on CPAN. These do not support normal vi command-line editing,
however.
And with ReadLine support also the left and right key should
work as expected.
Regards, Jens
--
\ Jens Thoms Toerring ___
\__________________________
http://toerring.de