Help for this page

Select Code to Download


  1. or download this
    # if I write
    main > one two
    
    # I should get new prompt
    main\one\two >
    
  2. or download this
    my $term = new Term::ReadLine 'Command Line Interface';
    my $attribs = $term->Attribs;
    ...
      $attribs->{completion_word} = &getTabCompletionArray(\@tmp);
      return $term->completion_matches($text, $attribs->{list_completion_f
    +unction});
    }
    
  3. or download this
    $completionsArray = qw(one two three four);   # found by &getTabComple
    +tionArray
    
  4. or download this
    current prompt > xdd