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

While debugging with StrawberryPerl when I enter a '§' character, I see that the previously entered line is deleted instead.

x %INC shows that modules Term::Readline, Term::ReadKey and Term::Cap are loaded.

Does anybody know, how to switch off this editing function binding?

Thanks!

Replies are listed 'Best First'.
Re: Key bindings in the Debugger
by LanX (Saint) on May 23, 2025 at 14:30 UTC
    > I see that the previously entered line is deleted instead.

    Could you please elaborate what you see.

    You can copy paste from the console before and after.

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

      Yes, thanks.
      I started perl v5.38.0 from the commandline (cmd.exe or ps.exe) with perl -wde 1:
      >perl -wde 1 Can't figure out your console, using stdin: No such file or directory Loading DB routines from perl5db.pl version 1.77 Editor support available. Enter h or 'h h' for help, or 'perldoc perldebug' for more help. COLUMNS and LINES are set (120,30) main::(-e:1): 1 DB<1>

      when i then enter some expression containing '§' at the prompt everything is echoed except the '§', which clears all my input.

        DB<1>x "abcdef and then entering '§' gives

        DB<1>

        Hi

        Thanks.

        And sorry, I can only speculate about a "console" issue on win mistranslating "§"

        Since I don't have any Strawberry Perl running at the moment, I can't test.

        I remember using another (real) terminal than cmd.exe once, which was installed as an app.

        But I don't remember the name... ¹

        You may want to test running perl -de0 inside another console/terminal to narrow the origin of the problem.

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

        ¹) That's it Windows_Terminal