in reply to Re^4: Key bindings in the Debugger
in thread Key bindings in the Debugger

Please see my footnote and install and test inside "windows terminal"

the CMD.exe "console" has many idiosyncrasies.

A first step should be to rule out that factor IMHO.

edit

I'd be very surprised if the debugger had a keybinding for §, this stems more likely from the OS/WindowManager/Console.

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

Replies are listed 'Best First'.
Re^6: Key bindings in the Debugger
by hexcoder (Curate) on May 23, 2025 at 17:12 UTC
    I get the same problem using "windows terminal". Thanks.
      hmm ... thanks!

      Now we need others to replicate the issue.

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

        Replicated: strawberry perl -v => This is perl 5, version 40, subversion 0 (v5.40.0) built for MSWin32-x64-multi-thread : same results as OP under Windows Terminal & cmd.exe or Windows Terminal & powershell

        DB<2> x Term::ReadLine->ReadLine 0 'Term::ReadLine::Perl'

        c:> chcp Active code page: 437 c:> chcp 65001 Active code page: 65001 c:> perl -wde 1 Can't figure out your console, using stdin: No such file or directory Loading DB routines from perl5db.pl version 1.80 Editor support available. Enter h or 'h h' for help, or 'perldoc perldebug' for more help. main::(-e:1): 1 DB<1> x "§" 0 '§'

        CP437 only has § in the 0x15, which is in the control codes section, so maybe upder CP437, it's being treated as a NAK which might confuse Term::ReadLine

        Switching back to powershell, the chcp 65001 doesn't fix everything, because when I paste in

        x "§"
        I get
        x "§"

        Specifically:

        PS C:\Users\pryrt> chcp
        Active code page: 437
        PS C:\Users\pryrt> chcp 65001
        Active code page: 65001
        PS C:\Users\pryrt> perl -wde 1
        Can't figure out your console, using stdin: No such file or directory
        
        Loading DB routines from perl5db.pl version 1.80
        Editor support available.
        
        Enter h or 'h h' for help, or 'perldoc perldebug' for more help.
        
        main::(-e:1):   1
          DB<1> x "§"
        0  '§'
          DB<2> x Win32::GetACP()
        0  1252
          DB<3> x Win32::GetOEMCP()
        0  437
          DB<4> x Win32::GetConsoleCP()
        0  65001
          DB<5> x Win32::GetConsoleOutputCP()
        0  437
        

        when looking at the same Win32 functions under the now-working cmd.exe environment, the difference is that Win32::GetConsoleOutputCP() is 65001, not 437.

        So then in the powershell window, I tried:

        DB<6> Win32::SetConsoleOutputCP(65001) DB<7> x "§" 0 '§'

        Yep.

        Hope this helps.

        edits: fix code/pre tags to get § to show up right in the various locations

Re^6: Key bindings in the Debugger
by hexcoder (Curate) on May 23, 2025 at 17:14 UTC
    My suspicion is one of the Readline modules, which at least has a function to kill the current line content.
        These ReadLine modules are loaded:
        x grep {$_ =~ m{ReadLine}xms }keys %INC 0 'Term/ReadLine/readline.pm' 1 'Term/ReadLine/Perl.pm' 2 'Term/ReadLine.pm'