Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Keep It Simple, Stupid
 
PerlMonks  

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

by Stamm (Acolyte)
on Nov 24, 2011 at 18:31 UTC ( #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
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...

        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 - )

        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.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2014-04-21 10:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (493 votes), past polls