http://www.perlmonks.org?node_id=939950


in reply to Using Tab Completion on Windows in cmd.exe

I don't follow. What do Perl modules have to do with name completion in cmd?
  • Comment on Re: Using Tab Completion on Windows in cmd.exe

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

    Well, Stamm wants to write a console Perl script that features tab completion. It seems most (all?) Perl modules tested so far seem to rely on some unix feature or other, or just don't support tab completion.

    Tab completion does not necessarily means name completion. For example, an interactive Eliza program might use it as well. So if the user types

    # I like tab c(tab)
    
    tab completion might turn it into
    # I like tab completion.
    
    to which the correct response would be of course
    Tell me more.
    

    Don't use '#ff0000':
    use Acme::AutoColor; my $redcolor = RED();
    All colors subject to change without notice.
      Ok, so not in cmd, but at his own prompt.
        Sorry for the misleading title. I used cmd.exe to say Windows vanilla shell instead of fancy stuff like powershell or cygwin.