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

Windows 7 This is a new installation of Strawberry Perl. When running as 'perl -d a.pl' get this error: "Unable to get terminal size. Win32 GetConsoleScreenBufferInfo call didn't work" Ideas please?
  • Comment on strawberry perl fails when running debug

Replies are listed 'Best First'.
Re: strawberry perl fails when running debug
by fionbarr (Friar) on Apr 06, 2017 at 14:03 UTC
    sorry...forgot to check Super Search....'set TERM=dumb' seems to have fixed it.

      Interesting - I have that set by default when opening a new Command Prompt. It's a actually set as a System variable (as opposed to user) - although as Admin, I could have put it there as well. I just don't ever remember setting TERM=dumb. Wonder if I needed it for something else (e.g., Gnuplot comes to mind)?

      Glad it worked out and thanks for posting solution.

        TERM=dumb is needed also in windows by some Term::ReadLine feature to work correctly, if i reacall, autocomplete.

        Perhaps you are running the portableshell.bat that comes within Strawberry portable distros? infact normally that env var is not present in win7

        The portableshell.bat launcher set this and other env vars before realease the control to the user

        L*

        There are no rules, there are no thumbs..
        Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
      I had the same problem about two week ago. I remembered 'Super Search' just in time to avoid hitting the 'create' button. I found the same solution. I works for me too. So far, I have not found any negative side effect from setting it from the control pannel.
      Bill
Re: strawberry perl fails when running debug
by VinsWorldcom (Prior) on Apr 06, 2017 at 14:06 UTC

    Strange. Probably need a bit more info (e.g., Strawberry version, 32/64 bit Strawberry and Windows OS, what is in a.pl). I don't get that error (Windows 7 x64 with Strawberry 5.24.0 64-bit):

    VinsWorldcom@C:\Users\VinsWorldcom> ver Microsoft Windows [Version 6.1.7601] VinsWorldcom@C:\Users\VinsWorldcom> perl -v This is perl 5, version 24, subversion 0 (v5.24.0) built for MSWin32-x +64-multi-t hread Copyright 1987-2016, Larry Wall [...] VinsWorldcom@C:\Users\VinsWorldcom> perl -d \usr\bin\gripps.pl Loading DB routines from perl5db.pl version 1.49_04 Editor support available. Enter h or 'h h' for help, or 'perldoc perldebug' for more help. main::(\usr\bin\gripps.pl:9): $VERSION = "1.05 - 21 JUL 2015"; DB<1>