Skip Menu |

This queue is for tickets about the Term-Twiddle CPAN distribution.

Report information
The Basics
Id: 35707
Status: resolved
Worked: 30 min
Priority: 0/
Queue: Term-Twiddle

People
Owner: scott [...] mailblock.net
Requestors: KRYDE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 2.71
Fixed in: (no value)



Subject: prompt on tty not flushed in test.pl
With the debian packaged perl 5.8.8 and Term::Size 0.2; running "make test" doesn't print the question "Do you want to run the tests" to the terminal. It just prints "ok 1" and sits doing apparently nothing. I think it's merely that the prompt print hasn't been flushed, as it comes out after you answer it (a pretty funny thing -- you get the question after the answer :-). Tinkering a bit suggests the blame may ultimately lie with Term::Size::chars(). After calling that it seems STDERR isn't autoflushed, or loses its linkage to flush when reading STDIN, or whatever it's got by default, since without that chars() call the prompt comes out fine. (The only moderately evil thing I could spot in Size.xs was getting a FILE* instead of letting the perl fileno func do the work.) At any rate perhaps test.pl could setup to flush its prompts in the interests of being sure of printing what should be printed.
Fixed in 2.73.