Term::BashTab - A simple wrapper of ReadLine with bash-like ETABE


Term-BashTab documentation  | view source Contained in the Term-BashTab distribution.

Index


NAME

Top

Term::BashTab - A simple wrapper of ReadLine with bash-like <TAB>

SYNOPSIS

Top

  use Term::BashTab;

  my $term = Term::BashTab->new();
  print $term->readline("blah");

  then <TAB> blah <TAB> blah <TAB> ...

DESCRIPTION

Top

A simple wrapper of Term::ReadLine (Term::ReadLine), offerring bash-like <TAB> feature.

WHEN TO USE

In order to get a valid program path or directory from user's input. User can use <TAB> to auto-complete.

HOW TO CONFIGURE

The module can parse two modes of input line: command <ONE ENTIRE PATH> and <ONE ENTIRE PATH>

In the first mode, all commands/subs available to user is specified by @Term::BashTab::COMMAND, local it to set your own list.

The second mode is enabled once $Term::BashTab::FIRST_NOT_COMMAND is true. Local it when required somewhere. In this mode, the current input line will be treated as ONE path.

Still not clear enough? Try playing with it in your free time ;-)

WHAT TO RETURN

The same as Term::ReadLine (Term::ReadLine), readline invokes Term::ReadLine::readline at last and returns the result.

EXPORT

The same as Term::ReadLine (Term::ReadLine).

SEE ALSO

Top

Term::ReadLine (Term::ReadLine)

AUTHOR

Top

Dongxu Ma, <dongxu.ma@gmail.com>

COPYRIGHT AND LICENSE

Top


Term-BashTab documentation  | view source Contained in the Term-BashTab distribution.