in reply to Using Term::ReadLine in an event loop other than Tk [SOLVED]

I'm trying to see if I can get Term::ReadLine to work in an event loop other than Tk, but the authors have made it somewhat difficult.

I'm kind of at a loss to explain what's going on here and hoping someone else has the required tuits.

This is where you go wrong # mangle their tree, inserting ourselves in the front.

See

  • Comment on Re: Using Term::ReadLine in an event loop other than Tk

Replies are listed 'Best First'.
Re^2: Using Term::ReadLine in an event loop other than Tk
by Tanktalus (Canon) on Jan 17, 2012 at 14:41 UTC

    I'm sorry, I don't follow. I've read the last three before, and don't see how they help me get Term::ReadLine to use another event loop. The second one is interesting, though dragging in Moose seems a bit overkill. And putting it in a subprocess is kind of a hack - then again, AnyEvent::DBI does about the same thing. I was hoping to avoid the overhead of a subprocess, though, partly to see if it could be done. The first one doesn't help at all, I think, as it would practically require re-implementing TRL. And TRL is horrendously complex, I'd rather not do that.

    I was also hoping to be able to submit changes back to the owners of TRL to see if they'd consider removing Tk and adding AnyEvent (which would still allow Tk to work, theoretically). Obviously not in the current state, and I doubt this scratches a big enough itch for them to attempt merely with a bug report/feature request.