Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^16: CPAN and readline on windows

by ikegami (Patriarch)
on Mar 27, 2009 at 01:11 UTC ( [id://753556]=note: print w/replies, xml ) Need Help??


in reply to Re^15: CPAN and readline on windows
in thread CPAN and readline on windows

When I use cpan with "ReadLine support enabled", perldl or perl -MTerm::ReadLine -e"$t=Term::ReadLine->nw('test'); 1 while (defined($t->readline(': ')))", none of the navigation keys work for me either. Ctrl-A does.

I'm using ActivePerl 5.10.0, WinXP, cmd Term::ReadLine 1.03 (latest). No unix environment or shells besides cmd.exe and command.com on the system.

perl -MCPAN -e "$CPAN::Suppress_readline=1; shell" allows me to use the cursor keys and such.

Replies are listed 'Best First'.
Re^17: CPAN and readline on windows
by syphilis (Archbishop) on Mar 27, 2009 at 01:59 UTC
    Well ... maybe it's *me* who's the odd one out. Wouldn't be the first time.

    I, too, have Term::ReadLine-1.03, which pretty much rules it out. And I also have an XP box with AS perl-5.10.0 (build 1004) on it.

    Only difference between our environments that might be significant (afaict) is that I do have other shells installed. I have cygwin and msys installed - and I do have some GNU tools installed, too.
    But none of that stuff is in my path unless I specifically put it there (via various batch scripts). I suppose, however, that Cygwin could be doing something surreptitiously ... via registry settings or something. Neither my GNU tools nor msys installations interfered with the registry in any way (afaik).

    Cheers,
    Rob
      I, too, have Term::ReadLine-1.03, which pretty much rules it out.

      I'm pretty much convinced that it is Term::ReadLine, or at least Term::ReadKey, specifically, ReadKey.xs.

      And I don't see where any registry key could be influencing this. (Which doesn't mean it ain't so, just that I can't find any place where it could be!)

      If you have Devel::Trace handy, could you try running perldl with it enabled?

      perl -d:Trace \path\to\perldl.pl

      And see where it comes to rest awaiting input?

      On my system it is at >> [0] (eval 9)[C:/Perl64/lib/Term/ReadKey.pm:522]:    6: ??? (your output may look a little different as I tweaked my Trace.pm).

      The press one of the arrow keys see what if any trace you get?


      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.
        I'm pretty much convinced that it is Term::ReadLine, or at least Term::ReadKey, specifically, ReadKey.xs

        Which version of Term::ReadKey do you have ? (I have 2.30.)

        Cheers,
        Rob

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-03-29 05:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found