kranthi has asked for the wisdom of the Perl Monks concerning the following question:
Please help me in creating a new command window with the prompt set to "My Prompt>" and executes only the commands that are defined in command block.use Term::ShellUI; system(start); my $term = new Term::ShellUI( commands => { "quit" => { desc => "Quit this program", maxargs => 0, method => sub { shift->exit_requested(1); }, }}, ); $term -> prompt("My Prompt>"); $term->run();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Create new command winow using Term::ShellUI
by Anonymous Monk on Jun 03, 2008 at 12:35 UTC | |
by Corion (Patriarch) on Jun 03, 2008 at 12:40 UTC | |
by kranthi (Sexton) on Jun 04, 2008 at 12:46 UTC | |
by Anonymous Monk on Jun 05, 2008 at 04:44 UTC | |
by Anonymous Monk on Jun 05, 2008 at 04:46 UTC | |
|