Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Term::ShellUI 0.92

    Download button

    No screenshots available
    Downloads: 305  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Scott Bronson | More programs
    Perl Artistic License / FREE
    April 5th, 2012, 06:39 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Term::ShellUI description

    A fully-featured shell-like command line environment.

    Term::ShellUI is a fully-featured shell-like command line environment.

    SYNOPSIS

    use Term::ShellUI;
    my $term = new Term::ShellUI(
    commands => {
    "cd" => {
    desc => "Change to directory DIR",
    maxargs => 1, args => sub { shift->complete_onlydirs(@_); },
    proc => sub { chdir($_[0] || $ENV{HOME} || $ENV{LOGDIR}); },
    },
    "pwd" => {
    desc => "Print the current working directory",
    maxargs => 0, proc => sub { system('pwd'); },
    },
    "quit" => {
    desc => "Quit using Fileman", maxargs => 0,
    method => sub { shift->exit_requested(1); },
    }},
    history_file => '~/.gdbui-synopsis-history',
    );
    print 'Using '.$term->{term}->ReadLine."n";
    $term->run();

    Term::ShellUI uses the history and autocompletion features of Term::ReadLine to present a sophisticated command-line interface to the user. It tries to make every feature that one would expect to see in a fully interactive shell trivial to implement. You simply declare your command set and let ShellUI take care of the heavy lifting.
    This module was previously called Term::GDBUI.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Perl module | shell-like command | line environment | Term | Perl | module

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM