Skip Menu |

This queue is for tickets about the Term-ShellUI CPAN distribution.

Report information
The Basics
Id: 44092
Status: resolved
Priority: 0/
Queue: Term-ShellUI

People
Owner: Nobody in particular
Requestors: marcpat [...] katamail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: problem tab completion for args and exclude_from_history
Hi, I tried your example COMMAND SET but it doesn't work with tab completion of the args (create and delete) and also in my program I tried to use it, but nothing works. It requires other module? Also I tried exclude_from_history about a command to set a password, but It doesn't work. "password" => { desc => "Change password", exclude_from_history => 1, minargs => 1, maxargs => 1, proc => sub { $currentObj->{password} = $_[0]; }, }, And I create my term with : my $term1 = new Term::ShellUI( prompt => "SHELL>", commands => getCommands(), history_file => '~/.shellui-synopsis-history', ); suggestion?
On Fri Mar 13 05:14:58 2009, marcpat@katamail.com wrote: Show quoted text
> Hi, > > I tried your example COMMAND SET but it doesn't work with tab
completion Show quoted text
> of the args (create and delete) and also in my program I tried to use > it, but nothing works. It requires other module?
Did you install Term::ReadLine::Gnu? Show quoted text
> Also I tried exclude_from_history about a command to set a password,
but Show quoted text
> It doesn't work. > > "password" => { > desc => "Change password", > exclude_from_history => 1, > minargs => 1, maxargs => 1, > proc => sub { > $currentObj->{password} = $_[0]; > }, > }, > > And I create my term with : > > my $term1 = new Term::ShellUI( > prompt => "SHELL>", > commands => getCommands(), > history_file => '~/.shellui-synopsis-history', > ); > > suggestion?
I added your password command to examples/synopsis-big and it worked just fine. The command executed but it was not in the history command and was not accessible via up arrow or command-R. Sorry for the 2 year delay. Just lost track of my Perl accounts.
Marking resolved for lack of further info. Open a new bug if you still see a problem.