Term-Scroller

 view release on metacpan or  search on metacpan

lib/Term/Scroller.pm  view on Meta::CPAN

    my $windowspec  = $params{window};
    my $hide        = $params{hide}         // 0;
    my $passthru    = $params{passthrough};

    my $pty     = IO::Pty->new;

    defined(my $pid = fork)     or croak "unable to fork: $!";

    # Parent: Return the new scroller
    if ($pid) {
        bless $pty => $class;
        ${*$pty}{'term_scroller_pid'} = $pid;
        return $pty;
    }

    ################################################
    # Forked child: reads pty and writes to output
    ################################################

    close $pty;
    select $outfh;

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 0.803 second using v1.00-cache-2.02-grep-82fe00e-cpan-9e6bc14194b )