Linux SoftwareProgrammingLibrariesTerm::Shell 0.01

Term::Shell 0.01


Term::Shell is a simple command-line shell framework. SYNOPSIS package MyShell; use base qw(Term::Shell); sub r
Developer:   Neil Watkiss
      more software by author →
Price:  0.00
License:   Perl Artistic License
File size:   17K
Language:   
OS:   
Rating:   0 /5 (0 votes)
Your vote:  
enlarge screenshot


Term::Shell is a simple command-line shell framework.

SYNOPSIS

package MyShell;
use base qw(Term::Shell);

sub run_command1 { print "command 1!n"; }
sub smry_command1 { "what does command1 do?" }
sub help_command1 {
cmdloop;

Term::Shell lets you write simple command-line shells. All the boring details like command-line parsing, terminal handling, and tab completion are handled for you.
The base class comes with two commands pre-defined: exit and help.

To write a shell with an exec command, do something like this:

package MyShell;
use base qw(Term::Shell); # or manually edit @MyShell::ISA.

sub run_exec {
my ($o, $cmd, @args) = @_;
if ($cmd ne $0) {
print "I'm sorry you're leaving us...n";
}
exec $cmd, @args;
exit 1;
}

When Term::Shell needs to handle the exec command, it will invoke this method. That's all there is to it! You write handlers, and Term::Shell handles the gory details.

Requirements:
  • Perl
    tags term shell  command line  you write  cmd @args  exec command  sub run  myshell use  simple command  package myshell  use base  

    Download Term::Shell 0.01


     http://ftp.casaafacerilor.ro/mirrors/CPAN/authors/id/N/NE/NEILW/Term-Shell-0.01.tar.gz


    Authors software

    Inline::CPP 0.25 (by Neil Watkiss)
    Inline::CPP is a Perl module that can write Perl subroutines and classes in C++.

    SYNOPSIS

    use Inline CPP;

    print "9 + 1

    Inline::Struct 0.06 (by Neil Watkiss)
    Inline::Struct is a Perl module that manipulate C structures directly from Perl.

    SYNOPSIS

    use Inline C => Config => Structs =

    Term::Shell 0.01 (by Neil Watkiss)
    Term::Shell is a simple command-line shell framework.

    SYNOPSIS

    package MyShell;
    use base qw(Term::Shell);

    sub r


    Similar software

    Term::Shell 0.01 (by Neil Watkiss)
    Term::Shell is a simple command-line shell framework.

    SYNOPSIS

    package MyShell;
    use base qw(Term::Shell);

    sub r

    Shell::Base 0.05 (by Darren Chamberlain)
    Shell::Base is a generic class to build line-oriented command interpreters.

    SYNOPSIS

    package My::Shell;

    use Shell::Base;

    Term::GDBUI 0.84 (by Scott Bronson)
    Term::GDBUI is a fully-featured shell-like command line environment.

    SYNOPSIS

    use Term::GDBUI;
    my $term = new Term::GDBUI(co

    Term::ShellUI 0.85 (by Scott Bronson)
    Term::ShellUI is a fully-featured shell-like command line environment.

    SYNOPSIS

    use Term::ShellUI;
    my $term = new Term::Sh

    EB::Shell::Base 1.01.02 (by Darren Chamberlain)
    EB::Shell::Base is a generic class to build line-oriented command interpreters.

    SYNOPSIS

    package My::Shell;

    use base qw(

    EB::Shell::DeLuxe 1.01.02 (by Johan Vromans)
    EB::Shell::DeLuxe is a generic class to build line-oriented command interpreters.

    SYNOPSIS

    package My::Shell;

    use base q

    Term::TUI 1.20 (by Sullivan Beck)
    Term::TUI is a simple tool for building text-based user interfaces.

    SYNOPSIS

    If TUI_Run is the only routine being used:
    use

    LDAP Shell 2.0 (by Luke Kanies)
    LDAP Shell is an interactive LDAP shell written in Perl and allowing basic administrative functionality, such as crawling the directo

    Bash 3.2 (by Free Software Foundation)
    Bash is the shell, or command language interpreter, that will appear in the GNU operating system.

    Bash is an sh-compatible shell t

    GO::Model::Term 0.04 (by GO::Model::Term Team)


    Other software in this category

    zlib 1.2.3 (by Jean-loup Gailly)
    zlib is designed to be a free, general-purpose, legally unencumbered, lossless data-compression library for use on virtually any comp

    libjpeg v6b (by Independent JPEG Group)
    libjpeg is a library for handling the JPEG (JFIF) image format

    OpenSSL 0.9.7c (by The OpenSSL Project Team)
    The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implement

    libxml2 2.6.27 (by DV)
    Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform), libxml2 library i

    GNU C library 2.4 (by Andreas Jaeger)
    GNU C library (glibc) is one of the most important components of GNU Hurd and most modern Linux distributions.

    GNU C library is us

  •     search


    Featured Software

    jEdit 4.3 pre8
    jEdit is an Open Source text editor written in Java

    Opera 9.02
    Surf the Internet in a safer, faster, and easier way with Opera browser

    GNU Aspell 0.60.4
    GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell


    Subscribe in Rojo
    Google Reader
    Add to My Yahoo!

    Add to My AOL
    Subscribe with Bloglines
    Subscribe in NewsGator Online
    Add 'nixbit linux software' to Newsburst from CNET News.com
    del.icio.us nixbit linux software


    Top tags