Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Programming > Libraries

    Term::Clui 1.37

    Download button

    No screenshots available
    Downloads: 359  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Peter J Billam | More programs
    Perl Artistic License / FREE
    November 16th, 2006, 02:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Term::Clui description

    Term::Clui.pm is a Perl module offering a Command-Line User Interface.

    Term::Clui.pm is a Perl module offering a Command-Line User Interface.

    SYNOPSIS

    use Term::Clui;
    $chosen = &choose("A Title", @a_list); # single choice
    @chosen = &choose("A Title", @a_list); # multiple choice
    $x = &choose("Which ?n(Arrow-keys and Return)", @w); # multi-line question
    if (&confirm($text)) { &do_something(); };
    $answer = &ask($question);
    $answer = &ask($question,$suggestion);
    $password = &ask_password("Enter password : ");
    $newtext = &edit($title, $oldtext);
    &edit($filename);
    &view($title, $text) # if $title is not a filename
    &view($textfile) # if $textfile _is_ a filename

    &edit (&choose ("Edit which file ?", grep (-T, readdir D)));

    Term::Clui offers a high-level user interface to give the user of command-line applications a consistent "look and feel". Its metaphor for the computer is as a human-like conversation-partner, and as each question/response is completed it is summarised onto one line, and remains on screen, so that the history of the session gradually accumulates on the screen and is available for review, or for cut/paste. This user interface can therefore be intermixed with standard applications which write to STDOUT or STDERR, such as make, pgp, rcs etc.

    For the user, &choose uses arrow keys (or hjkl) and Return or q; also SpaceBar for multiple choices. &confirm expects y, Y, n or N. In general, ctrl-L redraws the (currently active bit of the) screen. &edit and &view use the default EDITOR and PAGER if possible.

    It's fast, simple, and has few external dependencies. It doesn't use curses (which is a whole-of-screen interface); it uses a small subset of vt100 sequences (up down left right normal and reverse) which are very portable.

    There is an associated file selector, Term::Clui::FileSelect

    This is Term::Clui.pm version 1.37, #COMMENT#.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Command-Line Interface | User Interface | Perl module | Term::Clui | Command-Line | User



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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