Subject: | Term::ReadKey fails to get Terminal Size on Mac OS |
When running the tests for Term::Shell under Terminal.app on Mac OS
10.3, I get the following error:
--------------------------------------------------------------------
Running make test
PERL_DL_NONLAZY=1 /sw/bin/perl5.8.6 "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01require....ok 1/2Unable to get Terminal Size. The TIOCGWINSZ ioctl
didn't work. The COLUMNS and LINES environment variables didn't work.
The resize program didn't work. at
/sw/lib/perl5/site_perl/5.8.6//darwin-thread-multi-2level/Term/ReadKey.pm
line 362.
Compilation failed in require at
/sw/lib/perl5/site_perl/5.8.6//Term/ReadLine/Perl.pm line 63.
t/01require....dubious
Test returned status 127 (wstat 32512, 0x7f00)
DIED. FAILED test 2
Failed 1/2 tests, 50.00% okay
--------------------------------------------------------------------
This seems to actually be a problem related to Term::ReadKey. I'm
currently working around it by manually setting COLUMNS and LINES, but
that's not an ideal solution. Is there something I need to do to fix
this (eg. installing the 'resize' program), or is this a bug?
Thanks,
- Kevin