owler1 has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I have no function key recognition when using perl -d script.pl on one of my machines, whereas on the other the same instruction works fine. The escape sequences are visible as expected but not interpreted. Its fairly clear I haven't loaded some initialisation file - but I'm blowed if I can find what. Any help gratefully received. thanks all. As requested - an update Remote Server running RH Fedora Core Remote debugging via SSH from workstation running RH linux 9 bash shell. The RH9 WS supports the function keys. The terminal definition is xterm in both locations. I hope this helps more

Replies are listed 'Best First'.
Re: Function Keys Setup in perldebug
by rinceWind (Monsignor) on Jan 29, 2007 at 19:04 UTC

    The perl debugger, perl5db, uses the Term::ReadLine mechanism to get its command line input. Although this is core, what comes with it is merely a stub.

    You need to install Term::ReadLine::Perl and/or Term::ReadLine::Gnu, which support arrow keys and command history. The latter needs the readline library as a prerequisite - this library is outside perl.

    --

    Oh Lord, won’t you burn me a Knoppix CD ?
    My friends all rate Windows, I must disagree.
    Your powers of persuasion will set them all free,
    So oh Lord, won’t you burn me a Knoppix CD ?
    (Missquoting Janis Joplin)

      Brill Sir rinceWind Loading ReadLine::Perl worked a treat - ReadLine::Gnu failed to test and install My humble obeisances
Re: Function Keys Setup in perldebug
by ww (Archbishop) on Jan 29, 2007 at 16:26 UTC
    And your machine is running ______ ?

    If win32, you may have issues between versions; a missing ansi.sys (or similar) or similar.
    If *n*x, the issue is likely in the support provided by a windowing system (I think).

    It's hard to tell with the info you provided. Please update your question so that we may better help.