On Sun Apr 20 14:56:03 2008, SREZIC wrote:
Show quoted text> On Sat Mar 29 10:20:59 2008, SREZIC wrote:
> > On system with a working script(1) command it could be preferable to use
> > this command instead of IO::CaptureOutput. It seems that script is
> > perfectly emulating a terminal while capturing all of the output. I made
> > a test with the Curses::Widgets testsuite and it does not garble the
> screen.
> >
>
> I made now a test by monkeypatching a Tee.pm using script(1) into
> CPAN::Reporter (see the attached module).
This will probably work only under BSD systems. I tested it with
FreeBSD. Linux has another script syntax. If I recall correctly, instead of
system("script -q $file $command");
it should probably be something like
system("script", "-c", $command, $file);
(including a quiet option, if there is any)
Regards,
Slaven