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::Screen::ReadLine 0.35

    Download button

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

    License / Price:

    Last Updated:

    Category:
    Hans Dijkema | More programs
    Perl Artistic License / FREE
    September 7th, 2009, 15:40 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Term::Screen::ReadLine description

    Term::Screen extended with ReadLine

    Term::Screen::ReadLine is a Perl module that extends Term::Screen with a readline() function. It also makes it possible to use a *single* Esc to escape instead of the Term::Screen double Esc.

    SYNOPSIS

     use lib "./blib/lib";

     use Term::Screen::ReadLine;

     $scr = new Term::Screen::ReadLine;

     $scr->clrscr();
     $a=$scr->getch();
     print $a," ",length $a," ",ord($a),"
    ";
     $scr->two_esc;
     $a=$scr->getch();
     print $a," ",length $a," ",ord($a),"
    ";
     $scr->one_esc;


     $scr->clrscr();
     $scr->at(4,4)->puts("input? ");
     $line=$scr->readline(ROW => 4, COL => 12);
     $line=$scr->readline(ROW => 5, COL => 12, DISPLAYLEN => 20);
     $scr->at(10,4)->puts($line);
     $scr->two_esc;
     $line=$scr->readline(ROW => 6, COL => 12, DISPLAYLEN => 20, ONLYVALID => "[ieIE]+", CONVERT => "up");

     print "
    ";
     print $scr->lastkey(),"
    ";

     $r=$scr->getch();
     print $r,ord($r),"
    ";
     $r=ord($r);
     print $r,"
    ";
     if ($r eq 13) {
     print "aja!
    ";
     }



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    extended Term::Screen | Perl module | Term::Screen | ReadLine | Perl

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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