This queue is for tickets about the TermReadKey CPAN distribution.

Report information
The Basics
Id:
20173
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
jns [...] gellyfish.co.uk
Requestors:
KEVINR [...] cpan.org
Cc:
AdminCc:

BugTracker
Severity:
Important
Broken in:
2.30
Fixed in:
(no value)



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
On Wed Jun 28 17:16:22 2006, KEVINR wrote:
Show quoted text
> 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? >
I'd classify it as a bug in Mac OS X to be honest - it has previously been determined to be able to use the GWINSZ termio but this doesn't appear to be working. Unfortunately I'm not in a test to test on OS X myself so have inveigled some other people to look at it for me, however I am thinking that I'll probably add another fallback using "stty size" which appears to work. /J\
No solution


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.