Name : perl-Term-Completion
| |
Version : 1.02
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp154.1.1
| Date : 2024-01-04 06:49:28
|
Group : Unspecified
| Source RPM : perl-Term-Completion-1.02-lp154.1.1.src.rpm
|
Size : 0.09 MB
| |
Packager : https://www_suse_com/
| |
Summary : Read one line of user input, with convenience functions
|
Description :
Term::Completion is an extensible, highly configurable replacement for the venerable Term::Complete package. It is object-oriented and thus allows subclassing. Two derived classes are Term::Completion::Multi and Term::Completion::Path.
A prompt is printed and the user may enter one line of input, submitting the answer by pressing the ENTER key. This basic scenario can be implemented like this:
my $answer = < STDIN> chomp $answer;
But often you don\'t want the user to type in the full word (from a list of choices), but allow _completion_, i.e. expansion of the word as far as possible by pressing as few keys as necessary.
Some users like to cycle through the choices, preferably with the up/down arrow keys.
And finally, you may not want the user to enter any random characters, but _validate_ what was enter and come back if the entry did not pass the validation.
If you are missing full line editing (left/right, delete to the left and right, jump to the beginning and the end etc.), you are probably wrong here, and want to consider Term::ReadLine and friends.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/15.4/noarch |