develooper Front page | perl.perl5.porters | Postings from January 2012

Re: [perl #108470] Term::ReadLine should use AE instead of Tk for event looping

Darin McBride
January 19, 2012 14:57
Re: [perl #108470] Term::ReadLine should use AE instead of Tk for event looping
Message ID:
On Thursday January 19 2012 10:13:52 AM you wrote:
> While I don't have time this morning to get a working
> test case, I find that when the app uses Event,

That's okay, whenever you have time, it'd be appreciated.

> Again, this is all using Terminal::ReadLine::Gnu,

I've installed T::RL::Gnu now, and found that T::RL::G takes a serious control 
over STDOUT.  I had to change my timer to print to STDERR:

my $w = AE::timer (0,1,sub {print STDERR "${esc}s${esc}1H$t s ${esc}u";++$t});

My earlier patches seem to work with T::RL::G, too.

Without the patches, the only way to get my script to work is to "use Tk;".  
If I load Event prior to AnyEvent being used, the timer doesn't get called.  
With the patches, it works.

As for the discussion regarding AE's author's interactions with others, could 
we drop the cc on this perlbug for that, please?  Thanks.

(I'm still working on time to write some tests, but if Joel can show me that 
using multiple loops is transparent, then everything may become moot.) Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About