Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Term::ReadLine editing in perl5db.pl vs reply on Win10 ?

by LanX (Saint)
on Jun 10, 2020 at 01:23 UTC ( [id://11117890]=perlquestion: print w/replies, xml ) Need Help??

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

Hi

I'm a bit puzzled, I installed reply via ActiveState ppm (5.24) on Win10 and the inline editing supports the usual GNU/Emacs commands like CTRL-a -e -k -y and so on

But the standard perldebugger doesn't.

Both use Term::ReadLine and the environment var PERL_RL isn't set to another backend.

Does anyone have insight how reply is achieving this and if and how I can activate this inside the debugger too?

(NB: The Term::ReadLine::Gnu backend is not available for ActiveState/Win )

I already browsed thru reply's repository but couldn't find a hint...

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

PS: Reply is actually a pretty cool tool, but might need a better tutorial to show it's features.

Replies are listed 'Best First'.
Re: Term::ReadLine editing in perl5db.pl vs reply on Win10 ?
by perlfan (Vicar) on Jun 13, 2020 at 18:01 UTC
    idk if this would be helpful, but readline is what gives you line navigation in a shell, right? You said like in emacs, but I think most would know it for using to jump to the start (CTRL-a) and end (CTRL-e) of lines in the shell as you're typing; I know mysql cli client supports it, *nix shells, etc.

    It is a library that must be available, so if it's not available the Perl interfaces are probably going to not function (but also not break):

    On windows, the readline library page says, "If you are running Windows, I recommend that you use Cygwin, who currently ship readline-7.0 for x86 and readline-7.0 for x86_64, or MinGW, which currently has packages for readline-5.2.". My first thought was to suggest installing the library via cygwin, and this is pretty much what they suggest also.

    So checkout https://tiswww.case.edu/php/chet/readline/rltop.html and maybe adding it via Cygwin will help - not sure how to link up the RL modules or how setting PERL_RL may be involved, but hopefully this gives you some new ideas.

      Thanks, but I need to use the debugger interactively in the same environment like my client, and that's unfortunately active state for 5.24.

      My guess so far - we had similar discussions before - was that AS messed it up.

      That's why I asked how Reply - great tool BTW - solved it.

      Apart from this I'm very interested to have an out of the box REPL in CORE. I think that's crucial for Perl. :)

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11117890]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-03-29 10:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found