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.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Term::ReadLine::Zoid 0.07

    Download button

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

    License / Price:

    Last Updated:

    Category:
    Jaap Karssenberg | More programs
    Perl Artistic License / FREE
    July 17th, 2009, 01:24 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Term::ReadLine::Zoid description

    Another ReadLine package

    Term::ReadLine::Zoid is a Perl module that provides a set of modules that form an interactive input buffer written in plain perl with minimal dependencies. It features almost all key-bindings described in the posix spec for the sh(1) utility with some extensions like multiline editing; this includes a vi-command mode with a save-buffer (for copy-pasting) and an undo-stack.

    Historically this code was part of the Zoidberg shell, but this implementation is complete independent from zoid and uses the Term::ReadLine interface, so it can be used with other perl programs.

    ( The documentation sometimes referes to 'the application', this is the program using the ReadLine module for input. )

    SYNOPSIS

     # In your app:
     use Term::ReadLine;
     my $term = Term::ReadLine->new("my app");
     
     my $prompt = "eval: ";
     my $OUT = $term->OUT || *STDOUT;
     while ( defined ($_ = $term->readline($prompt)) ) {
     # Think while () {}
     my $res = eval($_);
     warn $@ if $@;
     print $OUT $res, "
    " unless $@;
     }
     
     # In some rc file
     export PERL_RL=Zoid



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    input buffer | ReadLine package | Perl module | ReadLine | Zoid | Perl

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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