Syntactic Confectionery Delight | |
PerlMonks |
Term::ReadLineby hotshot (Prior) |
on Dec 10, 2002 at 17:25 UTC ( [id://218845]=perlquestion: print w/replies, xml ) | Need Help?? |
hotshot has asked for the wisdom of the Perl Monks concerning the following question:
hello monks I'm using Term::TeadLine in my shell program for some purposes. One of them is the tab completion. my shell have menus so for example: I manage to do so by: each time the tab button will be pressed, the completion will be made relatively to the current prompt and the info in the input buffer in $line. This works perfectly except the case when I enter in the command line a char that no word in the completion array starts with, for example when the array is: and the input is: what I should expect is that no completion should be preformed, but what actually happens is that if in the current directory (where my shell program runs from) theres a file/directory that starts with xdd, the completion will be made. I guess it uses the defaultfile_completion_function, but I specified list_completion_function intentionaly so this won't happen, Anyone knows why this happens and how can I fix that not to show anything if no matches in the completion array? Hotshot
Back to
Seekers of Perl Wisdom
|
|