Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Using Tab Completion on Windows in cmd.exe

by Stamm (Sexton)
on Nov 24, 2011 at 18:31 UTC ( [id://939932]=note: print w/replies, xml ) Need Help??


in reply to Re: Using Tab Completion on Windows in cmd.exe
in thread Using Tab Completion on Windows in cmd.exe

Thanks for your answer. And yes, I thought it would have been solved too.

As for your code, I'm not sure I understand. Command history already works.

Maybe I should have Term::ReadLine::Gnu. But I can't install it. It says libtermcap.a or libcurses.a is missing. Anybody know what I should be doing?
  • Comment on Re^2: Using Tab Completion on Windows in cmd.exe

Replies are listed 'Best First'.
Re^3: Using Tab Completion on Windows in cmd.exe
by Anonymous Monk on Nov 24, 2011 at 18:36 UTC

    libtermcap.a or libcurses.a is missing. Anybody know what I should be doing?

    Install libetrmcap or libcurses, obviously :)

    Or try Term::ReadLine::Perl

      I don't know how to install those libraries. It's not Perl and I can only find resources for Unix. :-(

      And tab completion doesn't work with Term::ReadLine::Perl either.

      It seemed a perfectly simple and reasonable luxury to have for a command-line program...

        It seemed a perfectly simple and reasonable luxury to have for a command-line program...

        Well, it is perfectly simple and reasonable on Linux and Unix. As for Windows, for the longest time it has been a luxury.

        First Microsoft OS to support it was IMHO Windows XP in 2003, and it's still not very good. Not comparable in the way modern shells like bash do it by actually "knowing" with files are even compatible with the command you just typed. Like doing mplayer h<TAB> might choose hello.mov over hello.c when configured correctly.

        If you really want to know why Perl modules don't support every usefull feature on every shell, take a look at Wikipedia's comparison of computer shells.

        Don't use '#ff0000':
        use Acme::AutoColor; my $redcolor = RED();
        All colors subject to change without notice.

        I don't know how to install those libraries. It's not Perl and I can only find resources for Unix. :-(

        Bwaaah, boo hoo hooo, waaaah

        :D

        Here is a guide     http://ingar.satgnu.net/devenv/mingw32/base.html    

        It won't tell you where to download these two particular ones, but the same instructions can apply

        And tab completion doesn't work with Term::ReadLine::Perl either.

        I do believe history, the alternative cavac was presenting uses arrow keys (up/down)

        For me, with arrow keys, his example cycles through a history list (the program source, since i typed it in interactively, perl - )

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2025-06-22 08:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.