Linux SoftwareProgrammingLibrariesTerm::ANSIMenu 0.02

Term::ANSIMenu 0.02


Term::ANSIMenu is an infrastructure for creating menus in ANSI capable terminals. SYNOPSIS use Term::ANSIMenu; my $menu =
Developer:   J.A. de Vries
      more software by author →
Price:  0.00
License:   Perl Artistic License
File size:   19K
Language:   
OS:   
Rating:   0 /5 (0 votes)
Your vote:  
enlarge screenshot


Term::ANSIMenu is an infrastructure for creating menus in ANSI capable terminals.

SYNOPSIS

use Term::ANSIMenu;
my $menu = Term::ANSIMenu->new(
width => 40,
help => [['', &standard_help],
['hint 1', &help_item],
[ undef, &standard_help],
['hint 3', undef]
],
title => 'title',
items => [['1', 'First menu item', &exec_item],
['2', 'This string is just too long
to fit in a normal terminal
and thus it will be clipped.'],
['3', '', sub { system "man man" }]
],
status => 'status',
prompt => 'prompt: ');

$menu->print_menu();
while (my $key = $menu->read_key()) {
last unless defined $menu->do_key($key);
$menu->update_status('') if $key eq 'S';
$menu->update_status('New status') if $key eq 's';
$menu->update_prompt('') if $key eq 'P';
$menu->update_prompt('New prompt: ') if $key eq 'p';
}
$menu->pos($menu->line_after_menu() + 1, 1);

I wrote this mainly to make live easy on those staff members to whom I delegate tasks. Most of them prefer to use a menu instead of having to type complicated commands. To them it's a faster and safer way of working (we all know about typos don't we...).

By using this module you can create menus with only a few lines of code and still have a shipload of features. Need context-sensitive help or a statusbar? Like to use hotkeys? Want flashy colors and styles? It's all there. Just fill in the attributes and you're good to go.

Requirements:
  • Perl
    tags menu update  term ansimenu  update prompt  update status  key menu  standard help  help hint  

    Download Term::ANSIMenu 0.02


     http://ftp.hostingromania.ro/Linux/mirrors/ftp.cpan.org/authors/id/J/JA/JADEV/Term-ANSIMenu-0.02.tar.gz


    Authors software

    Term::ANSIMenu 0.02 (by J.A. de Vries)
    Term::ANSIMenu is an infrastructure for creating menus in ANSI capable terminals.

    SYNOPSIS

    use Term::ANSIMenu;
    my $menu =


    Similar software

    Term::ANSIMenu 0.02 (by J.A. de Vries)
    Term::ANSIMenu is an infrastructure for creating menus in ANSI capable terminals.

    SYNOPSIS

    use Term::ANSIMenu;
    my $menu =

    iPodDB::Menu::Help 0.03 (by Brian Cassidy)

    DOM Menu 0.3.2 (by Dan Allen)
    DOM Menu allows developers to add dynamic, hierarchical popup menus on their web pages

    Menu Editor 1.2.2 for Firefox (by Nickolay Ponomarev and Devon Jensen)

    XDG-Menu 1.3 (by Konstantin Korikov)
    XDG-Menu project is a ROX panel applet that displays an applications menu button

    Milonic DHTML Website Menu 5.752 (by Andy Woolley)

    Openbox menu editor 1.0 (by Manuel Colmenero)
    Openbox menu editor program is a tool that simplifies the process of editing Openbox's complex XML-based menu file.

    Requirements:

    Javascript::Menu 2.02 (by Yosef Meller)
    Javascript::Menu is a NumberedTree that generates HTML and Javascript code for
    a menu.

    SYNOPSIS

    use Javascript::Menu;

    XAO::DO::Web::MenuBuilder 1.07 (by Andrew Maltsev)

    Page Title Eraser 0.5.2 (by Scheglov Konstantin)
    Page Title Eraser is a Firefox extension which provides more privacy at your workplace by hiding the title and icon of a selected tab


    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