hide random home http://www.fmi.uni-passau.de/archive/doc/unix/perl/faq/1.23.html (Einblicke ins Internet, 10/1995)

How can I use curses with perl?

How can I use curses with perl?


    One way is to build a curseperl binary by linking in your C curses
    library as described in the usub subdirectory of the perl sources.
    This requires a modicum of work, but it will be reasonably fast
    since it's all in C (assuming you consider curses reasonably fast. :-)  
    Programs written using this method require the modified curseperl,
    not vanilla perl, to run.  While this is something of a disadvantage,
    experience indicates that it's better to use curseperl than to 
    try to roll your own using termcap directly.

    For a good example of using curseperl, you might want to pick up a
    copy of  Steven L Kunz's <skunz@iastate.edu> "perl menus" package
    ("menu.pl") via anonymous FTP from "ftp.iastate.edu".  It's in the
    /pub/perl as

        menu.pl.v1.4.shar
        menu.pl.v2.0.shr1
        menu.pl.v2.0.shr2
        menu.pl.v2.0.tar.Z

    menus.pl is a complete menu front-end for curseperl and demonstates
    a lot of things (plus it is useful to boot if you want full-screen
    menu selection ability).

    Another possibility is to use Henk Penning's cterm package, a curses
    emulation library written in perl.  cterm is actually a separate
    program with which you communicate via a pipe.  It is available from
    ftp.cs.ruu.nl [131.211.80.17] via anonymous ftp. in the directory
    pub/PERL.  You may also acquire the package via email in compressed,
    uuencoded form by sending a message to mail-server@cs.ruu.nl
    containing these lines:

        begin
        send PERL/cterm.shar.Z
        end

    See the question on retrieving perl via mail for more information on
    how to get retrieve other items of interest from the mail server
    there.