Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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

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


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

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

Replies are listed 'Best First'.
Re^5: Using Tab Completion on Windows in cmd.exe
by cavac (Parson) on Nov 24, 2011 at 19:12 UTC

    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.
Re^5: Using Tab Completion on Windows in cmd.exe
by Anonymous Monk on Nov 24, 2011 at 19:08 UTC

    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://939935]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-03-28 22:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found