source: trunk/essentials/dev-lang/perl/lib/Term/Complete.pm@ 3310

Last change on this file since 3310 was 3181, checked in by bird, 19 years ago

perl 5.8.8

File size: 4.4 KB
Line 
1package Term::Complete;
2require 5.000;
3require Exporter;
4
5use strict;
6our @ISA = qw(Exporter);
7our @EXPORT = qw(Complete);
8our $VERSION = '1.402';
9
10# @(#)complete.pl,v1.2 ([email protected]) 09/23/91
11
12=head1 NAME
13
14Term::Complete - Perl word completion module
15
16=head1 SYNOPSIS
17
18 $input = Complete('prompt_string', \@completion_list);
19 $input = Complete('prompt_string', @completion_list);
20
21=head1 DESCRIPTION
22
23This routine provides word completion on the list of words in
24the array (or array ref).
25
26The tty driver is put into raw mode and restored using an operating
27system specific command, in UNIX-like environments C<stty>.
28
29The following command characters are defined:
30
31=over 4
32
33=item E<lt>tabE<gt>
34
35Attempts word completion.
36Cannot be changed.
37
38=item ^D
39
40Prints completion list.
41Defined by I<$Term::Complete::complete>.
42
43=item ^U
44
45Erases the current input.
46Defined by I<$Term::Complete::kill>.
47
48=item E<lt>delE<gt>, E<lt>bsE<gt>
49
50Erases one character.
51Defined by I<$Term::Complete::erase1> and I<$Term::Complete::erase2>.
52
53=back
54
55=head1 DIAGNOSTICS
56
57Bell sounds when word completion fails.
58
59=head1 BUGS
60
61The completion character E<lt>tabE<gt> cannot be changed.
62
63=head1 AUTHOR
64
65Wayne Thompson
66
67=cut
68